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

populatedBy directive does not work together with the private directive #3530

Open
AccsoSG opened this issue Jun 21, 2023 · 0 comments
Open
Labels
bug Something isn't working ogm

Comments

@AccsoSG
Copy link

AccsoSG commented Jun 21, 2023

Is your feature request related to a problem? Please describe.
I would like to calculate a field with populatedBy. So on every create or update a corresponding callback function should calculate the field.

However, this field should not be retrievable via the API, but only used for internal purposes. I tried to implement this with the private directive. However, when using the private directive, the callback function is no longer executed. So no value is stored in the database for the field.

interface INode {
  transactionId: String @populatedBy(operations: [CREATE, UPDATE], callback: "transactionId") @private
}

type Person implements INode {
  transactionId: String
  name: String
}
@AccsoSG AccsoSG added the enhancement New feature or request label Jun 21, 2023
@darrellwarde darrellwarde added bug Something isn't working and removed enhancement New feature or request labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ogm
Projects
None yet
Development

No branches or pull requests

2 participants