Skip to content

Bug: hideOnFetchApi not working properly #294

@bhaktijkoli

Description

@bhaktijkoli

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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions