Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: hideOnFetchApi not working properly #294

Open
bhaktijkoli opened this issue Mar 23, 2022 · 0 comments
Open

Bug: hideOnFetchApi not working properly #294

bhaktijkoli opened this issue Mar 23, 2022 · 0 comments

Comments

@bhaktijkoli
Copy link

hideOnFetchApi() is still showing field on fetch (GET all and GET by ID) rest API requests

Resource

resource("User")
  .fields([
    text("Name").rules("required"),
    text("Email").rules("required", "email"),
    password("Password").hideOnFetchApi().rules("required"),
  ])

System

  • Node.js version: 14.17.0
  • NPM version: 6.14.13
  • Tensei version: 0.11.5
  • Database: MySQL
  • Operating system: macOS Monterey

Packages

"@mikro-orm/core": "^4.5.10",
"@mikro-orm/mysql": "^4.5.10",
"@tensei/auth": "^0.11.5",
"@tensei/cms": "^0.11.5",
"@tensei/core": "^0.11.5",
"@tensei/mail": "^0.11.5",
"@tensei/rest": "^0.11.5",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant