0 Question When making the Apollo Gateway leveraging the NestJS GraphQL Module, how can you save the schema file? Background Normally with NestJS GraphQL support you can save the schema file with something like this. GraphQLModule.forRoot<ApolloFederationDriverConfig>({ driver: ApolloFederationDriver, autoSchemaFile: { path: join(process.cwd(), ‘./schema.gql’), federation: 2 }, playground: true }), However, it seems like for the […]
-1 I am started using apollo and graphl, If anyone used apollo/client with nestjs let me know, how to use it. if i have to query the pubic spaceX graph https://studio.apollographql.com/public/SpaceX-pxxbxen/variant/current/explorer graphql nestjs Share Improve this question Follow asked 1 hour ago Krish909Krish909 6722 silver badges1212 bronze badges Add a comment | Load 4 more […]
0 What is the best practice for keeping subscriptions in sync with your query schemas? My previous exposure to graphQL subscriptions was from Hasura, which would implement subscriptions for every table such that when a subscribing is made, the current set would be sent over the wire (followed by any updates). const data = useSubscription(…) […]
0 I’m using AWS Amplify API with GraphQL in my Flutter app and I have defined a GraphQL schema with the following access rules: Any user, authenticated or not, can read all UserProfiles. Only the owner can create, read, update, and delete their own UserProfile. I am authenticating users with amplify_auth_cognito using Email. This is […]
0 Schema type Query { launches: [Launch] } type Launch { id: String! mission_name: String } Interface export interface launch { launches: Launch[]; } export interface Launch { id: string; mission_name: string; } Service file async getlaunches(): Promise<any> { console.log(JSON.stringify(this.launchEndpoint)); this.logger.info(‘Demonstrate masking of logged data:’); return await this.apiClient.post(this.launchEndpoint, { query: ‘{ launches { id, mission_name […]
7 I am learning C++ and my goal is to have a table beautifully displayed in console. I tried using std::left and std::right I/O manipulators, but now that I look at my code I cannot figure out what exactly these things are and what kind of mechanism they employ. So far, every function call required […]
7 Consider this union: typedef union { void* vptr; nullptr_t nptr; } pun_intended; nullptr_t is supposedly compatible with void*. Ok so what if we initialize the void* to some non-zero value? pun_intended foo = { .vptr = (void*)42 }; This conversion is supposedly legit (impl.defined) as per C23 6.3.2.3 §4, or at least it was […]
0 I am creating a react app using amplify and graphql my graphql schema is type Note @model @auth(rules: [ { allow: public } ] ){ id: ID! name: String! description: String image: String noteBook: NoteBook! } type NoteBook @model @auth(rules: [ { allow: public } ] ){ id: ID! name: String! notes: [Note!] } […]
0 I tried to install codegen in react application using the below comment npm install –save-dev @graphql-codegen/cli @graphql-codegen/typescript @graphql-codegen/typescript-operations @graphql-codegen/typescript-react-apollo and i got the below error yarn add v1.22.19 [1/4] 🔍 Resolving packages… [2/4] 🚚 Fetching packages… error [email protected]: The platform "darwin" is incompatible with this module. error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/add for […]
3 I am using from the below sample, but it gets me an error when I add libraries: Using the Apollo GraphQL client for Android Below is my build.gradle file (project): // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() maven { url "https://jitpack.io" } […]