How to automatically generate allow-lists from a JS/TS codebase? #6078
-
I would like to use allow-lists, but entering them to Hasura by hand does not seem feasible. Has anyone explored any automated methods? I am thinking something that scans my code for |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 25 replies
-
Looks like apollo-tool's client:extract will do the job. Can be paired with a script that pushes to the metadata API to fully automate, or can be uploaded to Hasura by hand. |
Beta Was this translation helpful? Give feedback.
-
@dminkovsky I ended up packaging and releasing it on my own as it does not seems like TallerWebSolutions is active anymore. I have been using for several deployment so far, and it works very well :) |
Beta Was this translation helpful? Give feedback.
-
We have released a plugin for graphql codegen that allows you to generate the metadata file you need for this. |
Beta Was this translation helpful? Give feedback.
@dminkovsky I ended up packaging and releasing it on my own as it does not seems like TallerWebSolutions is active anymore.
You can find the updated doc here: https://github.com/HomeskilletHealthInc/hasura-allow-list-manager
and package here: https://www.npmjs.com/package/@homeskillet/hasura-allow-list-manager
I have been using for several deployment so far, and it works very well :)