Questions

  • graph ql code auto generation .net core hot chocolate

    0 I am writing an API to fetch data from sql db(about 120+ tables). I have generated model class files automatically. Is there any automatic way to generate Service and Query class files? Right now I am writing these IService and class files. enter image description here enter image description here .net api asp.net-core graphql […]

  • How to Set GraphQL Variables in PHP

    1 I’m using the FXHash API to access listings with this query: query Listings($sort: ListingsSortInput) { listings(sort: $sort) { amount createdAt price issuer { name } objkt { name } } } $options = ‘{ "sort": { "createdAt": "DESC" } }’; I’d like to use the query above in PHP with the sort by createdAt […]

  • Dynamically restrict fields in graphql spring methods returning the same object type

    0 Would it be possible to somehow restrict some fields from being returned in a graph ql method, bur return them in another considering they both return the same object ? For example in the following methods i would like to restrict the field UserDto.birthday from being able to be queried in the second method. […]

  • How can I handle Big Int with GraphQL?

    0 I’ve an Django Model field with BigInt type, How can i map this in graphql schema, is there anything available like BigInt like Int type in Graphql? I’m using graphene library FYI My Schema: type MyModelObject { complaintId: BigInt createdBy: User! complaintNumber: String! } I got below warning/error in IDE The field type ‘BigInt’ […]

  • Strawberry Shake error using gzip compression

    0 I am following the official Strawberry Shake guide: https://chillicream.com/docs/strawberryshake/v13/get-started/console Specifically Step 4: Add a GraphQL client to your project using the CLI tools I run this command: dotnet graphql init https://integrate.somecloud.com/graphql -n SomeClient -p ./StrawberryShakeConsole –headers Accept-Encoding=gzip –tokenEndpoint https://integrate.somecloud.com/auth –token eyJhbGciOiJIUzI1… I receive the following error: Download schema started. Download schema completed in 557 […]

  • TypeORM Entity Association Returns Null for Related Fields in GraphQL Nexus Schema

    0 I’m currently building a GraphQL API using TypeORM and Nexus Schema. I’ve defined several entities with associations between them, such as Product, Brand, and User. The problem I’m facing is that when I query the Product entity using GraphQL, the related fields like category_id and brand_id are returning null values even though there is […]

  • Scraping GraphQL Cloudflare protected site

    -1 I got the following website: https://sportsbet.io. This website makes some XHR (POST) requests to https://sportsbet.io/graphql. This data is retrieved properly when I navigate the webpage using a browsers. However I wish to replicate this behaviour in either Postman or Python requests (httpx) but both seem to return me a 403 Forbidden. I wrote the […]

  • NestJs GraphQL : Unable To set and Get Cookie

    0 I am working on nestJS Graphql Project , and the problem is that when i send the cookie it is not setting on client and if i manually put the cookie it cant read also , but the thing that amazing me is when i login on sever by graphql playground it is setting […]

  • Undefined return value from getStaticProps

    0 The value being returned from my getStaticProps in nextjs is undefined. I tried fetching data from a graphql endpoint and the return value was undefined when I console.log the value. This is the code block const graphQuery = new GraphQLClient(url); export const getStaticProps = async () => { const { course } = await […]

  • What is enum DataSource.Link in flutter ferry?

    0 I am looking at this code in the file operation_response.dart from ferry_exec 0.3.1 https://pub.dev/packages/ferry_exec enum DataSource { /// A placeholder response source which can be used when waiting for another source None, /// Data originated from the client’s [Link] Link, /// Data originated from the [Cache] Cache, /// Data originated from a user-provided [OperationRequest.optimisticResponse] […]