Caleb Cox

Results 30 comments of Caleb Cox

I ran into this issue as well. It looks like the problem is that the `ui` function isn't returning the `publishScoped` answer that it prompts the user for. Because of...

I'm running into this same exact issue, at least in development with `netlify dev`, which keeps me from using Apollo v3.

+1 to this! I'd love to be able to load files as text so that I can import my GraphQL schema files. It would be awesome to just be able...

Quick question: What is the expected file structure when using `included_files`? My functions directory is "src/lambda/". This is the directory structure when running `netlify dev`. Notice the deep nesting and...

I think the more supported way of doing what you're trying to achieve is with [resolve wrappers](https://github.com/graphql-compose/graphql-compose-mongoose#access-and-modify-mongoose-doc-before-save). I used resolver wrappers in [my app](https://github.com/canac/mileage-editor-api/blob/main/src/crudSchema.ts) to ensure that users can only...

I've used graphql-compose-mongoose in a serverless environment before (Apollo Server running in Netlify), so I know that it can be done. Mind sharing some more of your code? The reason...

I've added scalars before via `createScalarTC`. Does calling `schemaComposer.createScalarTC(GraphQLUpload)` instead of making a separate upload schema work?

I think that you can achieve this with a [resolver wrapper](https://github.com/graphql-compose/graphql-compose-mongoose#access-and-modify-mongoose-doc-before-save). You can wrap your findOne resolver to run code that limits the visible fields based on the user's role,...