You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that function, and tracked down that it is used in tests, but I think it would be useful to have available in our actual project.
That way, we could have one or more directories with .graphqls and permission.json files in it instead of either defining them statically in the source, or writing the same file handling code you already have.
Thoughts?
The text was updated successfully, but these errors were encountered:
This function is only used in tests of cruddl. We can't export it in the package currently because it would introduce a dependency to node modules. cruddl has three exports:
cruddl/core - Project etc. - most functionality lives here. Works in node and in the browser
cruddl/arangodb - ArangoDBAdapter. only works in node
cruddl/inmemory - InMemoryAdapter. Works in node and in the browser
cruddl - combines all three
We would need to add a fourth export for node-utils. Can do that, but it's not very high on the priority list.
I found a way to get it to work:
const {loadProjectFromDir} = require("cruddl/dist/src/project/project-from-fs");
That's an internal import which could break anytime, e.g. when the internal structure of file in the package changes. I would suggest to just copy the methods you require.
I found that function, and tracked down that it is used in tests, but I think it would be useful to have available in our actual project.
That way, we could have one or more directories with .graphqls and permission.json files in it instead of either defining them statically in the source, or writing the same file handling code you already have.
Thoughts?
The text was updated successfully, but these errors were encountered: