Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

react-apollo

GraphQLError: Syntax Error: Expected Name, found

April 10, 2023 by Tarik

You are missing a closing bracket } at the end of your query. const GET_VEHICLE_CHECKS = gql` query getVehicleChecks($uuid: String!) { tripDetails(uuid: $uuid){ departmentAssigned{ vehicleChecks{ conditions{ id name standard valueType spinnerItems } } } } } <- THIS `;

Categories graphql Tags graphql, graphql-tag, react-apollo Leave a comment

Error: Network error: Error writing result to store for query (Apollo Client)

March 31, 2023 by Tarik

I had a similar error. I worked it out by adding id to query. for example, my current query was query { service:me { productServices { id title } } } my new query was query { service:me { id // <——- productServices { id title } } }

Categories javascript Tags apollo-client, graphql, javascript, react-apollo Leave a comment

Handling errors with react-apollo useMutation hook

February 24, 2023 by Tarik

Apollo exposes two kinds of errors through its API: GraphQL errors, which are returned as part of the response as errors, alongside data, and network errors which occur when a request fails. A network error will occur when a server can’t be reached or if the response status is anything other than 200 — queries … Read more

Categories reactjs Tags apollo-client, graphql, react-apollo, reactjs Leave a comment

GraphQL gql Syntax Error: Expected Name, found }

February 12, 2023 by Tarik

This error occurs mostly when there are unclosed curly braces or when some fields are not properly defined while calling the query.

Categories syntax-error Tags apollo, graphql, graphql-tag, react-apollo, syntax-error Leave a comment
Newer posts
← Previous Page1 Page2

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa