Tag: javascript
-
In-Person Intro to JavaScript: Functions and Objects
Actions Panel Ticket sales end soon Dive into the foundational JavaScript concepts! In this beginner's class, we will work with objects and declaring/invoking functions! By CodesmithFollow Date and time Tuesday, October 3 · 3:30 – 6pm PDT Location Online About this event 2 hours 30 minutes Mobile eTicket THIS IS AN IN-PERSON EVENT! To receive…
-
Unhandled GraphQL subscription error, when using apollos subscribeToMore method in an angular chat component for subscription
5 Problem Description I have a chat component in angular that gets messages from the backend via a graphql query. On the same query, I subscribe to updates when a new message is added via a graphql mutation. The messages subscription is coded as a method of the chat component so that I can invoke…
-
Lead GraphQL Developer – ADDSOURCE – Remote
ADDSOURCE Remote Skills API Best Practices Javascript User Interface Business Requirements ReactJS Node.js Translate graphql B2B Software Job Description Role Lead GraphQL Developer Location USA(Remote) Contract: 6+ Months **Responsibilities:** 1. Design, implement, and maintain GraphQL APIs for telecommunication customer-facing solutions. 2. Collaborate with cross-functional teams to understand business requirements and translate them into GraphQL schemas…
-
Authenticate Apollo Client to AWS AppSync with Cognito User Pools
5 I am trying to connect to my AWS AppSync API using the plain Apollo Client but I am not sure how to structure the authentication header correctly. So far I have followed the header authentication documentation here: https://www.apollographql.com/docs/react/recipes/authentication.html And have this code, which I adapted to include the token call to the Amplify authentication…
-
Authenticating Graphql using cognito user pool
0 I need help in connecting to Graphql(AWS AppSync) API using Amazon Cognito pool using Javascript/Nodejs. I am able to connect to Graphql using API key (API_KEY) as the authentication mechanism. But I need to change the Authentication mechanism to using Cognito pool (AMAZON_COGNITO_USER_POOLS). I know that we need to collect the JWT token and…
-
I am getting a required error using graphql tools
3 I am building a gql server application using apollo server. When I try to load my .graphql files using import { loadFilesSync } from ‘@graphql-tools/load-files’, this works very well, but when I load my resolver files, i get an error node:internal/errors:464 ErrorCaptureStackTrace(err); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /userpath/index.js from /userpath/server-gql/noop.js not supported.…
-
GraphQL validation error
0 I am trying out relay-treasure hunt tutorial but getting the following error when I run npm start. I did update my schema by running npm run update-schema. Uncaught Error: GraphQL validation error “Cannot query field “game” on type “Query”.“ in file `/home/tharaka/My Projects/relay-treasurehunt/js/routes/AppHomeRoute.js`. Try updating your GraphQL schema if an argument/field/type was recently added.…
-
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:…
-
How to extract subtree of the javascript object
0 I have large JSON object returned by my nodejs API server. I want to give users ability to query subset of fields similar to GraphQL but without schema. Object that is returned by API have set of standard fields but also set of any custom fields that users can add to its "custom" property.…