6 What does _Nullable mean in following declaration? void foo(int *_Nullable ptr) gcc of version 11.4 doesn’t compile that code, because it treats _Nullable keyword as an argument name. Yet I see this keyword in man 7 pages: https://man7.org/linux/man-pages/man2/epoll_ctl.2.html https://man7.org/linux/man-pages/man2/timer_gettime.2.html Godbolt c Share Improve this question Follow asked 11 hours ago Ержанов ЖалгасЕржанов Жалгас 6111 […]
2 I have been running into this GraphQL error for the past day or so and I have a hard time pinpointing where the problem lies. I hope the following makes sense… In my project I have the following GraphQL types; Questionnaire & Question were a Questionnaire has many Questions and a Question belongs to […]
9 I want to specify my GraphQL API in a schema, but I also want to spread my schema out among multiple files. I want to be able to use extend type Query or extend type Mutation to add queries or mutations to the overall schema. For example, my user.graphql file is as follows: type […]
0 I attempted to use response transformation in Hasura to extract the response_body from an action response. However, the action response is structured as follows 1. { "action_name": { response_body } } My desired outcome is to obtain the response_body without the action_name key, like this: 2. { response_body } Using response transform {{$body}} you […]
2 Is it anti pattern to prevent or eliminate duplicated fields in GraphQL? for example, this query has the same id field 10 times and even tho it doesn’t return the value 10 times, but it’s increasing the query cost, so, what is the best way to deal with this? how can I prevent querying […]
0 I am using GraphQL Lighthouse for Laravel 10 project for the first time and I stuck in first phase of api. I exactly do what documentation said Link Here and YouTube tutorial Install lighthouse package composer require nuwave/lighthouse Publish the default schema php artisan vendor:publish –tag=lighthouse-schema IDE Support php artisan lighthouse:ide-helper Install GraphQL DevTools […]
0 I have the following nodejs code : const { ApolloClient, InMemoryCache, createHttpLink } = require(‘@apollo/client’); // Define the HTTP endpoint const httpEndpoint = ‘https://localhost:5000/graphql/’; // Create an HTTP link const httpLink = createHttpLink({ uri: httpEndpoint, }); // Create an Apollo Client with the HTTP link const client = new ApolloClient({ link: httpLink, cache: new […]
1 given the following codegen.ts import type { CodegenConfig } from ‘@graphql-codegen/cli’; const config: CodegenConfig = { overwrite: true, schema: ‘https://mySchema’, documents: ‘src/**/*.ts’, generates: { ‘src/apollo/gql/’: { preset: ‘client’, plugins: [] } } }; export default config; the types generated starting from my schema.json are in conflict. I have a query with the following request: […]
7 How should I implement the multiplication by int (z * 2) on the last line. public static TResult Test<TResult>() where TResult : INumber<TResult> { TResult x = TResult.AdditiveIdentity; TResult y = TResult.MultiplicativeIdentity; TResult z = x * y; TResult z2 = z * 2; // <— this gives the CS0019 error "The operator * […]
12 #include <type_traits> template<typename… Ts> void boo() { struct A { struct B {}; }; static_assert(std::is_class_v<A>); static_assert(std::is_class_v<A::B>); // compilation failure; need typename. } int main() { boo<int>(); } Why is A::B a dependent name and A is not? Can not see anything in standard about that. c++ language-lawyer Share Improve this question Follow edited 12 […]