Tag: Node.Js
-
query mongodb with express and graphql
3 how do we use graph ql with mongo db here is my code with resolvers var resolvers = { test:()=>{ return getproducts() }, } const getproducts=()=>{ return new Promise((resolve,reject)=>{ Product.find({}).exec() .then(resp=>{ console.log("response is ",resp); let stringData = resp.toString() resolve(stringData); }).catch(err=>{ console.log(‘error is ‘,err); reject(err); }) }) } and schema is : test:String! i am…
-
DevOps Infrastructure Engineer – EWS – Remote
EWS Remote Depends on Experience Contract: W2, 12 Month(s) Skills DevOps GraphQL Kubernetes Node . js Job Description Title: DevOps Infrastructure Engineer Location: Remote Duration: Long Term Contract Description: Building out a new group of engineers to support the Platform Team. GLASS platform already built and implemented for US, Mexico & Canada. Need well-rounded engineers…
-
Is it bad to add your postgres connection directly in your graphql resolver?
0 If I wanted to use the lower level Postgres package from NPM called pg inside my Apollo server so I don’t have to use an ORM. Is it considered bad practice to pass the connection into the resolver directly? Example: // ./db/index.ts import { Pool } from ‘pg’ const pool = new Pool({ user:…
-
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…
-
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.…
-
Full Stack Developer (GraphQL)- Charlotte, NC/Detroit, MI – Digital Technology Solutions – Charlotte, NC
Digital Technology Solutions Charlotte, NC DOE Contract: W2, Independent, 12 Month(s) No Travel Required Skills JavaScript GraphQL TypeScript Node . js AWS AWS serverless Job Description DTS is looking for Full Stack Developer for our direct client Position in Charlotte, NC Job Description Seeking an innovative and passionate Software Engineer to build key capabilities…
-
Does it make sence to use data loader for multiple counts?
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.…
-
React with A11y(accessibility) Developer – eTeam, Inc. – Irving, TX
eTeam, Inc. Irving, TX Depends on Experience Contract: W2, Independent Work from home Skills GraphQL Javascript Node . js React js Redux Unit tests Webpack front – end development accessibility Job Description Job Title: React/Front-end Developer Location: Irving TX, OR Atlanta GA, OR Minneapolis (Hybrid) Mode: Contract – C2C / W2 Perform front-end development using…
-
How to declare Array Of Objects in TypeORM Graphql Schema?
0 I am working with 2 Postgres Models – users and posts, where each user can have multiple posts (One to Many Relation). Here I need to make a user profile function to access data of single user along with the associated posts. I have made the following schema.ts file for the same – import…