menu
Channels
Team
Posts
Members
Info

How to use transformSchema? Filter out results based on some fields

I am searching for examples, but am not finding something relevant to me, so thought of asking here. Can anyone help me based on the contrived example below: For a query like The result will look like …

thumbsup
1
message-simple
3

Directive to Check Ownership on ObjectType Level

Hello, I want to use a directive to check if a logged in user is the author of a book. If not, I want to throw an Error. This is my test schema: …

thumbsup
1
message-simple
0

auth directive example

I've build a directive based on the https://www.apollographql.com/docs/graphql-tools/schema-directives/#enforcing-access-permissions example and was wondering if I could enhance that directive to allow @auth without any parameter to just accept any role. After doing that I…

thumbsup
0
message-simple
0

MongoDB Node Driver, Serverless, Apollo GraphQL Playground

I'm deploying a node js project to AWS Lambda using serverless framework, mongodb node driver and utilising apollo server for graphql playground. I'm unable to get it to work. Is there any document availbale which talks about utilizing the above?

thumbsup
0
message-simple
6

Schema transforms - info, examples, debug execution during delegateToSchema

I am trying to perform schema transformation using ExtractField and WrapQuery methods. My problem is that I have found really not a lot of info and examples (only unit test from graphql-tools). I am doing transformation as a part of delegateToSchema. I get empty result, my…

thumbsup
1
message-simple
1

mergeSchemas, resolvers not working!

I am doing mergeSchemas on three schemas. But when I query one of them, it throws error. Other two work good. All three are executableSchemas. …

thumbsup
0
message-simple
1

PR review: https://github.com/apollographql/graphql-tools/pull/989

Would it be possible to merge/close this PR? It has been open for a while, it is already approved 🙏

thumbsup
0
message-simple
0

Graphql-tools: Transform field names on types from snake_case to camelCase

My Objective: I'm linking to a remote schema, and transforming it, before merging it with my local schema. The remote schema is in all snake_case. I need all "type" names and field names to be transformed to use camelCase. Some Backstory: …

thumbsup
0
message-simple
0

Ideas for investigation? (Resolver function called twice on one mutation) SOLVED

Hey guys, really need fresh ideas for debugging really strange problem. So may be some of you stumbled upon something similar and could help. I have heavy uploading (transcoding audio with ffmpeg) Which at some point relaunched (!), that is resolver function fired again. …

thumbsup
0
message-simple
4

Upload file on remote schema don't pass file

Hi, i have problem to send file to remote schema, i send mutation to main api interface with remote schemas, but on call method lost file data, i get empty object on target method, in main api i have the file but don't send correctly.

thumbsup
0
message-simple
0