11 In Jens Gustedt’s book Modern C, on page 59, he explains how signed integers can be emulated using unsigned integers. His example code shows how one can implement a comparison of two unsigned integers reinterpreted as signed integers: bool is_negative(unsigned a) { unsigned const int_max = UINT_MAX /2; return a > int_max; } bool […]
0 I have object something like below: type SomeEventInput { event: Event } type Event { type: EventType! } enum EventType { MORNING EVENING AFTERNOON MIDNIGHT } Mutation.SomeEvent(input: SomeEventInput!): Boolean! What i am trying to test it something like : mutation SomeEvent($input: SomeEventInput!) { SomeEventInput(input: {Event: {type: MORNING}}) } But it is showing error for […]
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 […]
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 […]
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 […]
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, { […]
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 […]
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 […]
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 […]
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: […]