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

Set writeOnly and readOnly jsonSchema's value options #87

Open
amendezcabrera opened this issue Nov 13, 2019 · 1 comment
Open

Set writeOnly and readOnly jsonSchema's value options #87

amendezcabrera opened this issue Nov 13, 2019 · 1 comment

Comments

@amendezcabrera
Copy link

I am using your library to automatically generate the GraphQL Schema but I need to set some values from the jsonSchema as readOnly and writeOnly as shown in their docs.
Is this possible? And how can I do it?
Thank you

@amendezcabrera
Copy link
Author

This can be achieved in the afterGet method:

$afterGet(queryContext) {
    delete this.returning_value;
}

It would be nice to just set the writeOnly parameter to the property but this does the job.

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