Questions

  • How to implement error handling globally for URQL GraphQL mutation?

    0 My stack is: react v17.0.2 graphql v16.8.0 graphql-ws v5.14.0 urql v4.0.5 I use Hasura Actions to connect to REST API and I need to implement global error handling for all mutations. For example I have useAuthentication hook that returns a signOut promise: import { useMutation } from ‘urql’; export const useAuthentication = () => […]

  • Apollo4 and GraphQL CORS

    -1 I’m trying to access my graphQL server on my production server but getting the CORS error. The request url is: https://mov****.at/graphql In my index.mjs where I start the Apollo server I have CORS defined as so: app.use( ‘/graphql’, cors({ origin: [‘https://mov***.at’, ‘https://mov***.at/graphql’, ‘https://studio.apollographql.com’] }), bodyParser.json(), expressMiddleware(server), ); And in my graphql.module.ts I have the […]

  • Strapiv4 & apollo graphql, sort results by multiples dates

    0 I have a list of articles, which have several dates attached to them : publishedAt (default date generated by strapi when article created) date (manual date user can enter to alter the default date) updateDate (manual date user can enter to print a second date, mentioning that the article was updated, and when) Basically […]

  • Apollo Federation supergraph query gives an error

    2 I got most of the tutorial up and running just fine, i.e subgraph creation, publishing subgraphs to Apollo Studio, and setting up the router. When I try to run a unified query on the supergraph, however, I get the following error, 2022-11-10T19:20:59.880454Z apollo-router/src/services/subgraph_service.rs:173 ERROR [trace_id=dc031984b0655a46580ce9ac8c7fd6e6] apollo_router::services::subgraph_service: fetch_error="hyper::Error(Connect, ConnectError("dns error", Custom { kind: Uncategorized, error: […]

  • Hotchocolate Filter by BsonExtraElements

    0 We have next entity: public class Product { public Guid Id { get; set; } public string Name { get; set; } = string.Empty; [BsonExtraElements] public Dictionary<string, object?> AdditionalData { get; set; } = new(); } This entity can have many dynamic data that can be stored inside AdditionalData property. Using attribute BsonExtraElements we […]

  • Fetch is not working in nextjs 13 version using graphql client library after fetching data for some time

    0 Applo client code in apploclient.js import { ApolloClient, HttpLink, InMemoryCache } from "@apollo/client"; import { registerApolloClient } from "@apollo/experimental-nextjs-app-support/rsc"; import { NextSSRInMemoryCache, NextSSRApolloClient, } from "@apollo/experimental-nextjs-app-support/ssr"; export const { getClient } = registerApolloClient(() => { console.log(process.env.UMBRACO_DOMAIN_GRAPHQL) return new NextSSRApolloClient({ link: new HttpLink({ uri: ‘https://localhost:44328/graphql/’, }), cache: new NextSSRInMemoryCache(), }); }); Code in root file […]

  • Apollo parse exception in Android

    1 Thanks in advance for help me. In my previous code GraphQL code was working but we want to migrate the Aws Amplify when we added the Amplify after words i am getting the data in interceptor but after that getting exception- "com.apollographql.apollo.exception.ApolloParseException: Failed to parse http response" "Parameter specified as non null is null […]

  • Spring GraphQLmultiple schemas with Query per file

    1 with Spring-GraphQl if I have following two schemas in the resources/graphql folder: schema1: type Query { bookById(id: ID): Book } type Book { id: ID name: String pageCount: Int author: Author } type Author { id: ID firstName: String lastName: String } schema2: type Query { personByName(name: String): Person } type Person { id: […]

  • Mutation for nested object

    15 I’m trying to implement GraphQL mutation for a "complex" object. Let’s say we have a Contact with three fields: firstName, lastName and address, which is object with one field street: Here is my python scheme implementation: class Address(graphene.ObjectType): street = graphene.String(description=’Street Name’) class AddressInput(graphene.InputObjectType): street = graphene.String(description=’Street Name’, required=True) class Contact(graphene.ObjectType): first_name = graphene.String(description=’First […]

  • Using GraphQL to list all tags of a FFmpeg and search for releases

    0 I’m trying to use GraphQL to get all tags of FFmpeg and later get the downloadUrl of each tag release. In the GraphQL Explorer, I used the following query: query { repository(owner: "FFmpeg", name: "FFmpeg") { refs(refPrefix: "refs/tags/", last: 100) { nodes { repository { releases(last: 100, orderBy: { field: CREATED_AT, direction: DESC}) { […]