GraphQL

Subscribe to GraphQL
Get notified when new articles on GraphQL are published.
    All
  • 20 Results
    • Tutorial

      Schemas and Resolvers in GraphQL

      Learn how to set up a basic GraphQL API with schemas and resolvers using graphql-yoga and nodemon.
      2 months agoBy Joshua HallGraphQL
    • Tutorial

      Exploring Directives in Prisma

      Learn to use Prisma directives to modify and enhance your GraphQL schemas.
      2 months agoBy Joshua HallGraphQL
    • Tutorial

      Introduction to Apollo Boost

      Run queries and mutation with your GraphQL backend from the client side using Apollo Boost. Here I show you how it can be done with vanilla JavaScript.
      2 months agoBy Joshua HallGraphQL
    • Question

      How to setup subdomain point to api using ip:port hosted in doker container

      I have nodejs api hosted in docker contain on my centos droplet. I can call using http://ip:4000/graphql . Now I want to point api.mydomain.com/graphql to ip:4000. My domain is point to google cloud. May I know how ca...
      Accepted Answer: Hello, You can achieve this with Nginx. You would need to set up an Nginx server block and add a reverse proxy rule. Here is a quick tutorial that demonstrates this: https://www.digitalocean.com/community/questions/ho...
      1 answer5 months agoBy alexaungAPIContainerDockerGraphQLNode.js
    • Tutorial

      How To Build a GraphQL API With Golang to Upload Files to DigitalOcean Spaces

      Uploading files with GraphQL can be a challenge, since there is no built-in support for file uploads. In this tutorial, you will learn to upload images to a third-party storage service directly from your backend appli...
      5 months agoBy Victory NwaniDevelopmentGoGraphQLAPI
    • Tutorial

      An Introduction to GraphQL

      In this article, you will review what GraphQL is, familiarize yourself with important terminology and concepts of GraphQL, and discover how the GraphQL specification compares with the REST architectural style.
      6 months agoBy Tania RasciaGraphQLAPI
    • Question

      Connection refused to NodeJs/GraphQL App (droplet) and unable to renew Letsencrypt certificates

      I received this email from Let’s Encrypt Team: *"Your certificate (or certificates) for the names listed below will expire in 0 days (on 15 Sep 21 13:50 +0000). Please make sure to renew your certificate before then, ...
      No answers yet8 months agoBy Ros110Node.jsDigitalOcean DropletsGraphQLLet's EncryptNginx
    • Question

      How to set up postgraphile on a digitalocean hosted postgres db

      I am trying to setup postgraphile on an already existing DigitalOcean hosted postgres db by following the instructions here https://www.graphile.org/postgraphile/quick-start-guide/ “npx postgraphile -c ‘postgres://use...
      No answers yet9 months agoBy OlayemiPostgreSQLDigitalOcean Managed PostgreSQL DatabaseGraphQL
    • Question

      Not able to perform graphql queries after changing database to Supabase PostgresQL database

      I followed this tutorial https://www.digitalocean.com/community/tutorials/how-to-build-a-graphql-api-with-prisma-and-deploy-to-digitalocean-s-app-platform#:~:text=Resolver functions receive,in GraphQL Resolvers , was ...
      Accepted Answer: Hi there, I think that you can not change the connector to supabase:// as it is not a valid connector according to the list with the supported database connectors for Prisma here: https://www.prisma.io/docs/concepts/d...
      1 answer1 year agoBy sumchansNode.jsGitAPIDevelopmentGraphQLDigitalOcean App Platform
    • Question

      S3 ListObjectsV2 operation: api error NotImplemented, Server does not support one or more requested headers

      Hello, I am trying to use Digitalocean spaces using the AWS-SDK V2 for Golang. Everything works almost fine until the point where I attempt to perform an operation, then I get the error below; operation error S3: List...
      2 answers1 year agoBy Victory NwaniDigitalOcean SpacesGoAPIGraphQLStorage
    • Question

      How to create update mutation in GraphQl

      I followed your article on “How To Build a GraphQL Server in Node.js Using GraphQL-yoga and MongoDB”(https://www.digitalocean.com/community/tutorials/how-to-build-a-graphql-server-in-node-js-using-graphql-yoga-and-mon...
      No answers yet1 year agoBy DwijViraniMongoDBNode.jsJavaScriptGraphQL
    • Question

      How To Deploy an ASP.NET Core Application with Neo4j on Ubuntu 18.04

      I have an ASP.NET CORE MVC web application, and I have used graph database Neo4j, Now I want to deploy my application to Ubuntu, So how I’ll do this. Please help…
      1 answer1 year agoBy gilaniamarblesNginxDeploymentUbuntu 18.04NoSQLGraphQLMySQL
    • Question

      NodeJS on an app throws upstream connect error or disconnect/reset before headers. reset reason: connection termination","status":503

      Hello guys I am having a GraphQL server built with nodejs deployed on an application (Not a droplet). I see the server logs this error regularly. GraphQL Error (Code: 503): {“response”:{“error”:“upstream connect error...
      2 answers1 year agoBy ahmedtarekAxolotlNode.jsGraphQL
    • Question

      Build Fails when trying to get system ENV Variables

      I’m attempting to use the App platform to deploy a GraphQL API made with Apollo Server as a web service. When Adding in System ENV vars, I get this error message: Error: getaddrinfo ENOTFOUND https://osdm-api-r44fl.on...
      1 answer2 years agoBy MuddyBootsCodeGraphQLNode.jsDigitalOcean App Platform
    • Tutorial

      Understanding Queries in GraphQL

      In this tutorial, we’ll take an in-depth look at queries in GraphQL so that you better understand how to retrieve data from a GraphQL server. We will cover fields, arguments, aliases, operation syntax, and more. Once ...
      2 years agoBy Peter EkeneAPIGraphQL
    • Tutorial

      How To Build a GraphQL API with Prisma and Deploy to DigitalOcean's App Platform

      In this tutorial, you’ll build a GraphQL API for a blogging application in JavaScript using Node.js. You will first use Apollo Server to build the GraphQL API backed by in-memory data structures. You will then deploy ...
      2 years agoBy Daniel NormanDigitalOcean App PlatformAPIGraphQLDevelopmentNode.jsGit
    • Question

      Next.JS Deployment to Nginx Droplet

      I’m currently attempting to deploy my Next.js SSG application to the same droplet that my backend graphql api is hosted on. The api sits at /graphql while the app sits at /app but when I navigate to /app I get a loadi...
      Accepted Answer: Solved the problem it turns out that I hadn’t properly set up the express server to operate on the correct root it was / and it should’ve been replaced with /api
      2 answers2 years agoBy milorueNginxReactGraphQL
    • Question

      WebSocket connection to 'wss://api-such.andsuch.xyz/graphql/' failed: Error during WebSocket handshake: Unexpected response code: 400

      Hello everyone! I recently deployed a project I’m working on to production. I use DjangoChannelsGraphqlWs for GraphQL subscription functionalities. and I have GraphQL Playground set up via django-graphql-playground . ...
      Accepted Answer: After going through lots of articles, I discovered this one , and this section made me realize the only thing that was wrong was the fact that I didn’t expose port 8000 internally to other docker services. In my docke...
      3 answers2 years agoBy CimmanuelPythonDjangoDockerNginxGraphQL
    • Question

      How do I manually calculate average session duration?

      Hallo guys, can anyone help me tell the exact formula of the average session duration where to get from? I’m having trouble finding a manual calculation of the average session duration For example, from the google ana...
      1 answer2 years agoBy rifulabyssalData AnalysisDigitalOcean ArticlesBig DataGraphQL
    • Tutorial

      How To Set Up a Ruby on Rails GraphQL API

      In this tutorial, you will build a GraphQL-powered Ruby on Rails API for taking notes. When you are finished, you will be able to create and view notes from the API using GraphQL.
      2 years agoBy Chuks OpiaRuby on RailsRubyGraphQLPostgreSQLAPI