Tag: graphql
-
Impossible to use @graphql-codegen/cli correctly, Error: Cannot find module ‘stream/web’
0 I have some problems using graphql-codegen. Here’s the best description I can give, hope it helps with the resolution. My work environment: Windows 10 Non-admin user NodeJS 16.0.0 NPM 7.24.2 Typescript 5.2.2 Apollo server express 3.12.1 GraphQL 15.8.0 The error is obtained when (according to the documentation) I init with this command: npx graphql-code-generator…
-
WordPress Gatsby get parent props
0 I’m a grapql newby and struggling to get the parent props from current page. In gatsby-node.js I create all wordpress pages with: createPage({ path: `${page.node.uri}`, component: PageTemplate, context: { id: page.node.id, title: page.node.title, parentId: page.node.parentId }, }) Then on the page I use following to get data from current page with: query($id: String!) {…
-
How to do counts in batch for graphql data loader?
0 I’m implementing a Graphql resolver for complex datatype. I try to use a data loader to avoid N+1 problem. I have a datatype with a counter. Therefore, in one graphql query I need to perform user counting multiple times for defferent types. Currently, I’m trying to combine multiple COUNT(*) queries within one SQL query.…
-
Is there anyway to store related 1-m entities in sea orm for quering with graphql?
0 so, for example i have user entity which has related adverts (one user -> many adverts) use async_graphql::{self, SimpleObject}; use chrono::NaiveDateTime; use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, DeriveEntityModel, SimpleObject)] #[sea_orm(table_name = "user")] #[graphql(name = "User")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, pub created_at: NaiveDateTime, pub updated_at: NaiveDateTime, pub name: String, pub surname: String,…
-
Can a GraphQLHttpClient be instantiated against an in memory server
0 Hoping to run integration tests against an in memory server. If I were to create the in-memory server using WebApplicationFactory<Program>, how would I instantiate a GraphQLHttpClient against it? The constructors for GraphQLHttpClient expect an endpoint. I know I could run integration tests against an in memory server in dotnet core 7.0 using an HttpClient…
-
Golang Developer (nearby to Sunnyvale, CA located candidates only) – Econosoft – Sunnyvale, CA
Econosoft Sunnyvale, CA Depends on Experience Contract: Independent, W2, 12 Month(s) Skills Golang GraphQL Kafka Job Description Role – Golang Developer (Hybrid Role in Sunnyvale, CA) … 2 days onsite … nearby located candidates only Skills – 3-5+ years of hands-on experience as a Software Engineer Strong knowledge and experience with Golang Experience with GraphQL Basic…
-
Query Error: error returned from database: relation “adverts” does not exist
0 so i have 2 entities in my database use async_graphql::{self, SimpleObject}; use chrono::NaiveDateTime; use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, DeriveEntityModel, SimpleObject)] #[sea_orm(table_name = "adverts")] #[graphql(name = "Advert")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, pub created_at: NaiveDateTime, pub updated_at: NaiveDateTime, pub available: bool, pub price: f32, pub location: String, pub user_id: i32, // pub…
-
Enum values casting not retained in Apollo graphQL java code generation
0 I have defined following enum type in my graphql schema enum TimeUnit { Day Week Month Year } I am using apollo graphql client and generating models which create a java enum like: public enum TimeUnit { DAY("Day"), WEEK("Week"), MONTH("Month"), YEAR("Year"), /** * Auto generated constant for unknown enum values */ $UNKNOWN("$UNKNOWN"); private final…
-
Fetch Braintree enabled Payment Methods with GraphQL
0 I am trying to fetch all the Payment Methods enabled on a Braintree account using GraphQL but unable to. Query: query ClientConfiguration { clientConfiguration { analyticsUrl assetsUrl clientApiUrl environment merchantId } } Response: { "errors": [ { "message": "The requested field is not accessible with the provided authentication credentials.", "locations": [ { "line": 4,…
-
GraphQL uses REST query which has an array as JSON response does not work
0 I’m trying to query another system with a GraphQL query. Due to the system only takes REST queries I use the @rest operator to convert the query. But the REST query has an array as response which leads to the following error: {"name":"ApolloError","graphQLErrors":[],"clientErrors":[],"networkError":{},"message":"typename is undefined"} GraphQL query: const QueueStatusQuery = gql` query checkQueueStatus_HLS{ robot(input:{})…