Questions tagged [graphql]

Use this tag for questions involving code that is consuming a GraphQL API. Note that a GraphQL schema isn't reviewable on its own.

Filter by
Sorted by
Tagged with
1
vote
0answers
22 views

Avoiding Duplicated Code Fragments Graphene in FastAPI

How can I avoid repeating code fragments between the mutations and types with graphene in a FastAPI app? I really want to avoid repeating any codes for obvious reasons. graphql\mutations.py ...
1
vote
0answers
23 views

Cursor-based search result pagination

Can you guys review my GraphQL search pagination function? I'm afraid there could be some performance issues, or something. Especially at the aggregation section and this ...
1
vote
0answers
32 views

Secure GraphQL API with REST auth layer

I have created a REST auth layer in front of my GraphQL API, I would like to know if it is secure enough or if I can improve anything, I will be adding more auth providers, in the end this API will ...
1
vote
0answers
182 views

Secure auth with Node.js, GraphQL, Nexus and passport with JWT's

I am trying to authenticate / authorise users with graphql, nexus, passport, prisma, graphql-shield and fastify for REST with JWT To answer possible questions: I am using passport because it handles ...
2
votes
1answer
58 views

Peer to Peer GraphQL with Relay over WebSocket

Here is my Relay Network: ...
1
vote
0answers
22 views

Using two handlers for a GraphQL project; handle query with the second one if the first one is not capable of

I'm trying to use both SuperGraph as-a-library and GqlGen. So I have two handlers: the first one is SuperGraph; this checks that it can carry out the operation the second one is GqlGen; this checks ...
1
vote
0answers
22 views

Creating two different posts types on my Gatsby site - rewriting my gatsby-node.js

I need to identify the different markdown files I have so I can create a unique url structure for them. I can already identify "notes" files, and want to create a second type called "...
2
votes
0answers
325 views

GraphQL Schema for a Social Network [closed]

I am learning about GraphQL so I decided to make a schema for some sort of social network. Please let me know if there are any best practices I should follow based on my schema below. ...