Tag: graphql
-
Types conflict when using GraphQL Code generator (codegen)
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:…
-
Platform Engineer – Noblesoft Solutions Inc. – Remote
Noblesoft Solutions Inc. Remote Depends on Experience Contract: W2 Skills Platform Design Platform Implementation GraphQL Node.Js TypeScript AWS Job Description Job Description: • Minimum Years of Experience: Twelve(12) years of professional experience in the Technology field• 10 years of software/platform design and implementation experience• Excellent communication skills.• Additional Requirements (i.e. % of travel time, etc.):…
-
Best way to construct a GraphQL query string in Python
29 I’m trying to do this (see title), but it’s a bit complicated since the string I’m trying to build has to have the following properties: mulitiline contains curly braces I want to inject variables into it Using a normal ””” multiline string makes injecting variables difficult. Using multiple f-strings makes injecting variables easy, but…
-
Tried to use the environment variable in graphql codegen file
0 I tried to use the environment variable in the codegen.yml. I decided to generate the codegen.yml file by using the handlebars. yarn add handlebars codegen-template.yml overwrite: true generates: ./src/generated/graphql.tsx: schema: "{{REACT_APP_GRAPHQL_ENDPOINT}}" documents: src/**/*.graphql plugins: – typescript – typescript-operations – typescript-react-apollo package.json "scripts": { "generate-yaml": "npx handlebars -c .env -i codegen-template.yml -o codegen.yml" } and…
-
subscription in Graphql shutting down
1 I have a graphQL api I am trying to query . I added a server side function : public class Subscription1 { [SubscribeAndResolve] [Topic] [UseDbContext(typeof(ApplicationDbContext))] public IQueryable<Alert> OnAlertAdded([Service] ApplicationDbContext context, int clientId) { return context.AlertClients .Where(ac => ac.ClientId == clientId) .Select(ac => ac.Alert) .AsQueryable(); } } and I am using postman to get the…
-
Inquiry about Sentry’s Capabilities for Detecting N+1 Query Problems in React GraphQL Node.js Project
0 I’m reaching out to inquire about Sentry’s capabilities in detecting specific performance issues. My technology stack includes React for the front end, GraphQL for the API layer, Node.js for server-side logic, and PostgreSQL as the database management system. Here are the specific areas we are looking for assistance with: Frontend Issues in Real Time…
-
“Column `distinctAlias.post_id` does not exist” Typeorm
0 I have a posts resolver which uses this logic to return posts: const qb = Post.createQueryBuilder(‘post’) .select([‘post.id AS id’, ‘post.createdAt AS id’]) .addSelect( "json_build_object(‘id’, user.id, ‘username’, user.username, ’email’, user.email, ‘createdAt’, user.createdAt, ‘updatedAt’, user.updatedAt)", ‘creator’ ) if (req.session.userId) qb.addSelect((qb) => { return qb .subQuery() .select(‘updoot.value’) .from(Updoot, ‘updoot’) .where(‘"userId" = :userId AND "postId" = post.id’, {…
-
Get all the related posts except the current post using WPGraphQl in reactjs
2 I’m trying to grab the related posts except the current post using WPGraphQL. My thought is to exclude the ID of the current post and display all related blog posts within the category. I’m new to GraphQL, I don’t know how to figure out to solve it. is this possible in GraphQL? Please help…
-
Graphql Shopify | Query articles with its metafields
1 Has anyone done a query for Articles that have metafields? I can query the articles with its title, otherfields etc, but by default Shopify won’t return the articles metafields in this call. These metafields for these articles have been created by an app. My first goal would be trying to call all articles and…