Tag: Node.Js
-
Can’t import the named export XXXX from non EcmaScript module (only default export is available)
30 I have a client-server setup, in which the client(create-react-app) runs on localhost:3000 and the server is an express server which is built on node and I’m attempting to build graphql schema-resolvers setup. I’m able to import .graphql files on the server, however, on the client side, I’m using this setup by graphql-tools. When I’m…
-
Multi database support in prisma
0 I have 3 databases in my project. Every database has different data. But they have some relation between them. For example on the transaction database in my transaction, it has a userId stored and in the Default database User table has this user. Now how to manage these multi-database and cross-relation between databases in…
-
TypeScript throws error for not being able to find a module
0 I have a Node.js express application that is serving an Apollo GraphQL API serving as a BFF for a React Application. The project uses the latest graphql npm package of 16.8.0 and it utilizes the graphql-contstraint-directive package. Now when I build my project — build script is "build": "tsc" — it throws this error:…
-
Apollo-Server subscription to Postgres database
1 I have a postgres table (User) which is fed data from a third party service like Airflow or Nifi. I am running an apollo-server with NodeJS which fetches the user data and passes this data to the React component. One way to show the details of users is using polling in apollo-client which will…
-
Error: “Query.getAllBooks” was defined in resolvers, but not in schema
0 I’m currently working on a small Nest.js application where I want to create a GraphQL query to retrieve an array of books. However, I’m encountering an issue where I’m not getting the expected response. I’ve provided the relevant code snippets below. Can someone please help me identify what I might be doing wrong? src/books/books.dto.ts…
-
updating record with typeORM transactions
0 I have quiz api in nestjs, i am using typeORM for saving data, I want to do following transaction: create quiz in quiz table with title and auto generated Id and empty array of questions for each question try to save question in data base with generated quiz_id and questions input save quiz and…
-
How to call sub-field in delegateToSchema
0 Schema looks like this: type Query { userManagement: UserManagementQueries! } type UserManagementQueries { users(…): UserManagementUsersConnection } … So the query looks like: query { userManagement { users(ids: [123, 456]) } } How can I call this with delegateToSchema where I can only set a fieldName? How do I call a "sub"-field? return info.mergeInfo .delegateToSchema({…
-
expecting ‘close_unescaped’ in graphql query
0 mycolllection(where:{wasAmycollectionGivenBy_SINGLE:{id:{{{entityID}}}}}) { I tried: {{entityID}} I tried: "{{{entityID}}}" I tried: {entityID} I tried: {entityID} I am getting error [myCollectionAPI] Failed to get the mycollection info F27379A9-FEC8-4BF9-AD37-C2701296B143 : {"status":500,"message":"Parse error on line 2:n…NGLE:{id:{{{entityID}}}}}) {r totalCoun———————–^nExpecting ‘CLOSE_UNESCAPED’, ‘OPEN_SEXPR’, ‘ID’, ‘STRING’, ‘NUMBER’, ‘BOOLEAN’, ‘UNDEFINED’, ‘NULL’, ‘DATA’, got ‘CLOSE_RAW_BLOCK’","errors":["Error: Parse error on line 2:n…NGLE:{id:{{{entityID}}}}}) {r totalCoun———————–^nExpecting ‘CLOSE_UNESCAPED’, ‘OPEN_SEXPR’,…
-
Senior Software Engineer (Ruby / GraphQL / React) – Jobot – Jacksonville, FL
Jobot Jacksonville, FL $90,000 – $150,000 per year Full Time Skills SaaS Bridging React.js Node.js Java Analytical skill Leadership SOLID Usability Computer science Job Description 100% Remote / Greenfield development / Microservices / SaaS platform for youth sports! This Jobot Job is hosted by: Craig RosecransAre you a fit? Easy Apply now by clicking the…
-
Senior Software Engineer (Ruby / GraphQL / React) – Jobot – Nashville, TN
Jobot Nashville, TN $90,000 – $150,000 per year Full Time Skills SaaS Bridging React.js Node.js Java Analytical skill Leadership SOLID Usability Computer science Job Description 100% Remote / Greenfield development / Microservices / SaaS platform for youth sports! This Jobot Job is hosted by: Craig RosecransAre you a fit? Easy Apply now by clicking the…