Tag: graphql
-
Graphql pagination
0 How to create pagination in supabase with graphql. When I have query: { postsCollection(first: 10) { pageInfo { hasNextPage, hasPreviousPage, startCursor, endCursor } edges { cursor node { id title } } } } I return olny coursor next and previus and I don’t know how many page is in pagination and next whan…
-
Graphql: show Mysql DB in using graphql with python
0 I have a mysql table, which i want to represent using graphQL, I have tried something using ariandne, and i am able to get the rows. Now, I want to introduce functionality of where clause as well, One way could be to have a resolver for each column, but that has its limitations, and…
-
How to fix error output format in Nest.js + graphql?
0 Faced the problem of getting errors from graphql in nest.js when the data does not pass validation. I wrote a global filter to bring it all to a single format, but it doesn’t want to work, or rather it works, but graphql wraps everything in a bunch of data and originalError GraphQLModule.forRoot<ApolloDriverConfig>({ driver: ApolloDriver,…
-
user match query does not exist
0 I have been tasked to create separate user model for third_party users who are to access our endpoint so i created separate user named ApiCliet and inherited the Abstract user model of Django i also created a custom authentication for that user model only and then crated two mutation to create an api client…
-
Graphql ID resolves as string even if it’s integer
1 I’m new to graphql and hope someone can explain me this ID type that is always string. As said in the docs: The ID scalar type represents a unique identifier, often used to re-fetch an object or as a key for a cache. If you use, for example, some caching client like Apollo, each…
-
SpringBoot graphQL getting Invalid Syntax for nested Object
0 I am using GraphQL in my SpringBoot app. While the CRUD operations are running for single objects, I am facing the issue of Invalid Syntax for nested objects. Please find the code below and suggest. graphql type Book { isn: Int title: String author: String publishedDate: String publisher: Publisher! } input PublisherInput { pId…
-
How can I implement a HotChocolate FieldResolver when the resolved value depends on another field?
0 I have the following code designed to apply a list of errors to resolved items by fetching the full list of errors from another service which that caches them for performance reasons: public class MyEntityExtensions : ObjectType<MyEntity> { protected override void Configure(IObjectTypeDescriptor<MyEntity> descriptor) { descriptor .Field("errors") .Type(typeof(List<Error>)) .Resolve(async context => { var errorCache =…
-
Graphql mutation error: “Field ‘createUser’ is missing required arguments: input”
7 I’m trying to follow along this article on how to create a mutation on a rails server using GraphQl https://www.howtographql.com/graphql-ruby/4-authentication However, I’m stuck at the CreateUser Mutation step, I get the follow error hash when trying it out in GraphiQL: { “errors”: [ { “message”: “Field ‘createUser’ is missing required arguments: input”, “locations”: […
-
Golang Developer – Galaxy i Technologies, Inc. – Austin, TX
Galaxy i Technologies, Inc. Austin, TX Contract: W2 Skills Golang API GraphQL Job Description ***W2 CONTRACT***W2 CONTRACT***W2 CONTRACT*** 100% Closure & Long-Term Project Job Title: Golang Developer Location: Austin, TX DIRECT CLIENT HYBRID MODEL (Weekly 3 days Onsite) ALL VISA TYPES ARE ACCEPTABLE JOB DESCRIPTION: System Architecture: Design, implement, and maintain scalable and efficient backend…
-
Apollo Client: switch between local and remote server
0 Currently I’m creating an http link with a relative URI. This works when the server is running locally, and also works when the client and server are hosted remotely: const httpLink = createHttpLink({ uri: ‘/.netlify/functions/foo’, }); const authLink = setContext((_, { headers }) => { const token = process.env.REACT_APP_TOKEN return { headers: { …headers,…