Questions

  • Laravel Lighthouse / Apollo Client React not sending auth cookies

    0 I’m creating a Laravel / React SPA Application using Sanctum Stateful Auth. I’n my local enviroment it works just fine. Cookies are being sent and everything is ok, but when I pass the app to production ( I’m using a shared hosting ). The stateful auth breaks and doesn’t work. It allows me to […]

  • How to embed nullable relations in ApiPlatform using GraphQL

    0 I am creating an API with ApiPlatform v3.2.1 and make use of the GraphQL features to query the API. How can I make it possible to use nullable embedded relations? For example I have an entity "Ordering" and nullable one-to-one related entities "ProductFoo" and "ProductBar". "ProductFoo" and "ProductBar" relation to "Ordering" is not nullable […]

  • Retrieving the last billing cycle using shopify graphQL

    0 Is there a way in shopify graphQL to determine the total number of a billing cycles the subscription contract has ? I’ve tried the following query but it requires either billingCyclesDateRangeSelector or billingCyclesIndexRangeSelector, since I do not have the value of max billing cycle I do not have idea about the max date range […]

  • GraphQL query is not returning the data at the first fetch itself

    0 In my NextJS application, I’m using Apollo Client to query the data. This is the code, //Redeem earnable item const claimableItemId = "5ab7c5ab-7a3d-4a92-a62f-2fbd995955f6"; const destAddr = "0x387961b46242A42B445D4354d5048329410613a7"; const [redeemEarnableItem, { data: redeemItem }] = useMutation( REDEEM_EARNABLE_ITEM, { variables: { claimableItemId, destAddr, }, } ); const { loading, error, data: invoiceDetails, } = useQuery(GET_INVOICE_DETAILS, { […]

  • Export GraphQL result to CSV without pagination

    0 We have multiple lists that contain filters and are requested with GraphQL. We want to export the results to a CSV. At the moment we created a controller that loops over the paginator by requesting the GraphQL endpoint and concats the result to one array. Is there a native way to do it internally […]

  • GraphQL Hot Chocolate Stiching

    0 I have 2 GraphQL servers + 1 that should stick them into one. I cannot get my head around the Stitching.graphql file and how it works. I tried the tutorials on the Hot Chocolate website and webinars but still no luck. Pokemon – is working on its own schema { query: PokemonQuery } type […]

  • How to retrieve data where a record field matches with any item in the given list?

    0 How to get all records from AWS Amplify GraphQL API where the field(example busNumber) of a model matches with any item in the given list. Note:- busNumber is of type String I am using AWS client side library to perform this in Kotlin in android studio. My Dependencies are:- implementation ‘com.amplifyframework:core:1.4.0’ implementation ‘com.amplifyframework:aws-api:2.14.1’ This […]

  • Any way to only cache GOOD responses in data sources?

    0 Is there any way in @apollo/datasource-rest to cache "good" responses from my rest api, i.e statuses 200 to 299. I read in the datasource-rest documentation (https://github.com/apollographql/datasource-rest/blob/main/src/HTTPCache.ts#L201) that "With a TTL override, only cache successful responses but otherwise ignore method and response headers" Does that mean that adding this to my dataSource: cacheOptions: { ttl: […]

  • How to reduce execution time of GraphQL data fetching

    0 If I start with a large GraphQL query that has 600+ spans on the dataFetching graphql resource, and I extract part of the query so that there are only 200 spans on that resource, the execution time of dataFetching doesn’t change at all. I don’t really understand why that is? If it’s not fetching […]

  • header for authentication in django and graphql

    0 { "Authorization": "JWT token" } and in graphQL my query is : query{ allStudents{ name roll } } but stil does’t work for me I am expecting to secure my api end point because all will create tokenauth then can access data import graphene from graphene_django.types import DjangoObjectType import graphql_jwt from .models import Student […]