Questions

  • How can a big number fit precisely into `double` with 32-bit GCC?

    6 Consider the following code: #include <iostream> int main() { long long x = 123456789123456789; std::cout << std::fixed; auto y = static_cast<double>(x); // (1) std::cout << static_cast<long long>(y) << "n"; // (2) std::cout << y << "n"; std::cout << (x == static_cast<long long>(y)) << "n"; // (3) std::cout << static_cast<long long>(static_cast<double>(x)) << "n"; // (4) […]

  • StrawberryShake graphql init command return Object reference not set to an instance of an object

    0 I’m trying to use StrawberryShake library to build a GraphQL client app. When executing dotnet graphql init https://public-api.shiphero.com/graphql –headers Authorization="xxxxxxxxxxx" command in Visual Studio Developer PowerShell window, it downloads the schema ok, but then generates error of "Object reference not set to an instance of an object". Does anyone know what to do to […]

  • Possible to use only one package version using pnpm?

    1 I need to use apollo-server and graphql-upload to handle file uploads. This is working as expected with the old graphql-upload v9. Updating to the latest v11 results in failing uploads. To make it short, the problem is, that apollo-server (and @nestjs/graphql) are depending on the old graphql-upload v8. (For those, who are interested in […]

  • Problem with spring boot graphql. Request /graphql results with 404

    8 I’m trying to run simplest graphql example. I created application with spring initializer and only added graphql dependencies. My build.gradle buildscript { ext { springBootVersion = ‘2.1.1.RELEASE’ } repositories { mavenCentral() } dependencies { classpath(“org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}”) } } apply plugin: ‘java’ apply plugin: ‘eclipse’ apply plugin: ‘org.springframework.boot’ apply plugin: ‘io.spring.dependency-management’ group = ‘com.example’ version = […]

  • Modify multi query arguments in graphQL-JS

    0 I am building an app using graphQL, neo4j and Apollo client and running into issue with multi-query. I want to implicitly apply argument to multi-query on server side when user pass payload without arg. For example: query { books(where: { cust_id: "1"}) { name } posts { description } cars { type } } […]

  • how to implement graphql with java with nebula graph like dgraph

    1 I have a java project I have a nebula graph to save all my information I need to have graphql queries I implement it but we need a dynamic schema so we save our schema for any of dynamic entity types for example our users want to have dynamic datatypes that we implement and […]

  • Go gqlgen command not found occurs

    0 I’m learning Go and GraphQL. I was building a Go environment, but when I ran the gqlgen init command, I got a message in the terminal bash: gqlgen: command not found When I ran the gqlgen init command, a message appeared in the terminal. The command that was executed $ mkdir with-apollo-api $ cd […]

  • Getting uuids of references with Get filtering

    0 I understand one can get the uuid of an object using .with_additional([id]). Let say now, I request references as well for example: where_filter = { "path": ["name"], "operator": "Equal", "valueText": "whatever" } (client.query.get("Node", [‘name’, ‘hasChildren{… on Node{name}}’]) .with_where(where_filter) .with_additional([‘id’]) .do()) the .with_additional applies only to the parent node and you would not get uuids […]

  • Handling Exceptions not working with SPQR (graphql)

    0 I am having an issue in configuring exception handling with this. I went through all the issues/examples and found some solutions. But don’t know that is not working. See, here is how I configured my graphQL @Autowired public GraphqlController(BookResolver bookResolver) { GraphQLSchema schema = new GraphQLSchemaGenerator() .withBasePackages("com.graphql.learn") .withOperationsFromSingleton(bookResolver) .generate(); this.graphQL = new GraphQL.Builder(schema) .queryExecutionStrategy(new […]

  • Gorm postgress DB database display error: bigint type for the user id

    0 Based on the schema below, when I try to implement the function, it displays an error as it’s not a bigint type for the user id, but the user id in the user struct generated by gqlgen is a string. My schema: type Query { getUser(id: ID!): Users! listUsers: [Users!]! } type Mutation { […]