Tag: graphql
-
Is there a way to search through job postings with new Upwork GraphQL API?
1 Since Upwork is deprecating REST API support on December 15, I’ve started refactoring my application to support new GraphQL API. My main REST API requests are: Search Jobs: GET /api/profiles/v2/search/jobs.{format} Get Job Profile: GET /api/profiles/v1/jobs/{job_key}.{format} The problem is, GraphQL API Docs does not seem to have similar requests in "Search" directory. Only thing I…
-
graphql codegen defaults to watchQuery, no possible way to alter? I only want to get the value 1 time
1 I have a sveltekit + apollo graphql project here. introspecting from my dev-env api here. The issue I’m having is the codegen with this config: import type { CodegenConfig } from ‘@graphql-codegen/cli’; const config: CodegenConfig = { schema: ‘<<<url>>>’, documents: ‘./src/lib/graphql-service/**/*.gql’, generates: { ‘./src/lib/graphql-service/generated.ts’: { plugins: [‘typescript’, ‘typescript-operations’, ‘graphql-codegen-svelte-apollo’] } }, watch: false };…
-
Frontend Full Stack Engineer – SPECTRAFORCE TECHNOLOGIES Inc. – Westlake, TX
SPECTRAFORCE TECHNOLOGIES Inc. Westlake, TX Depends on Experience Contract: W2, 12 Month(s) Work from home Skills Angular TypeScript JavaScript GraphQL NestJS Job Description Role: Frontend Full Stack EngineerLocation: Durham, NC/Westlake, TX, Smithfield, RI (Hybrid, 1 Week onsite/Month)Duration: 12+ MonthsPay rate starts from: $60/hr on W2W2 Only Must haves: Angular (Angular 13+), TypeScript, and Core JavaScript…
-
Defining relationships between different graphql model types
0 The context of our problem: We are new in using AWS DataStore via GraphQl and defined two models, Memory and UserLabel. type Memory @model { id: ID! authorId: String! text: String! createdOn: AWSDateTime! lastModifiedOn: AWSDateTime! userLabels: [UserLabel] @hasMany(fields: ["id"]) mapPin: [MapPin] @hasMany(fields: ["id"]) } type UserLabel @model { id: ID! authorId: String! name: String!…
-
GraphQL deleteManyConnection not able to delete a record
0 I am implementing a function to delete a record from the database with graphql but it is giving me headaches now. I am using hygraph/graphcms on which the query is running perfectly fine but its not working in the code. here is the query – const deleteLikeNotificationQuery = gql` mutation DeleteLikeNotification( $actorId: ID! $notifierId:…
-
“”POST body missing, invalid Content-Type, or JSON object has no keys.” Error on Apollo v4
0 //Sever.js import { ApolloServer } from ‘@apollo/server’; import { startStandaloneServer } from ‘@apollo/server/standalone’; import {makeExecutableSchema} from "@graphql-tools/schema"; import {typeDefs, resolvers} from "./schema.js"; import { expressMiddleware } from ‘@apollo/server/express4’; import { ApolloServerPluginDrainHttpServer } from ‘@apollo/server/plugin/drainHttpServer’; import express from ‘express’; import http from ‘http’; import cors from ‘cors’; import bodyParser from ‘body-parser’; async function startServer(port, callback){…
-
How to authorize NestJs, GraphQL app using Auth0 and Passport?
0 I have developed a NestJs graphql app and now I want to authorize all my mutations and queries. Users get authenticated from Auth0. after following this article I have created below files in my project. AuthModule : import { Module } from ‘@nestjs/common’; import { PassportModule } from ‘@nestjs/passport’; import { JwtStrategy } from…
-
Apollo Server 4 / Koa – Cannot read properties of undefined (reading ‘headers’)
0 i upgraded to apollo 4 and i am using koa js. But there are some problems with context. Authentication process does not work. Authentication time I get an error like this: **"message": "Cannot read properties of undefined (reading ‘headers’)" "code": "INTERNAL_SERVER_ERROR", @[email protected][email protected]/node_modules/@apollo/server/dist/esm/utils/schemaInstrumentation.js:36:28) backend/graphql/resolvers/posts.js:31:20 backend/util/check-auth.js:5:36** import { ApolloServer } from "@apollo/server"; import { ApolloServerPluginDrainHttpServer }…
-
Unable to Access Autodesk Construction Cloud’s All hubs using GraphQL API
0 I have Autodesk Construction Cloud Subscribed account, But still I’m unable to get all hubs using graphQL Query. I am getting the fusion 360 hubs but not ACC hubs. Is there any other way to get all hubs from ACC account? I have tried following query to get all the hubs of ACC. query…