Git Product home page Git Product logo

graphql-example's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @aashish-chaubey
  • ๐Ÿ‘€ Iโ€™m interested in Data Science and I'm a bibliophile
  • ๐ŸŒฑ Iโ€™m currently scaling up my skills in NLP technology.
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on developing side projects particular to NLP technologies. I'm also a hackathon enthusiast and I'd love to collaborate with you on this too.
  • ๐Ÿ“ซ Direct Line: +91 7892146813, email: [email protected], website: https://aashishchaubey.com

Things I code with

Python PyTorch tensorflow Docker Google Cloud Platform AWS IBM Cloud Heroku git github actions postgres MongoDB FastAPI jupyter VSCode Spacy Apache Airflow Apache Spark Ubuntu YOLO swagger nvidia Kaggle StackOverflow scipy Pandas OpenCV

Meet me here

Aashish's Instagram Aashish's Discord Aashish Chaubey | Twitter Aashish's LinkedIN Aashish's Website Visits

graphql-example's People

Contributors

aashish-chaubey avatar callmemansoor avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

graphql-example's Issues

String Value in the response is coming as null

Issue:

When we query for the API through the REST client, the response is a little peculiar. In that, all the String keys hold a value of null even though there is String data in the database.

Screenshots are attached below:

image

Reproduce the error:

  • Set up a MySQL database as mentioned in the README.md of the project.
  • Configure the database
  • Run the project as guided by the README file.
  • Query for the endpoint /api/v1/employee with the query in the body as
{
	getAllEmployees {
		id
		first_name
		last_name
		salary
	}
}
  • Check the output.

This is my query response:

{
    "errors": [],
    "data": {
        "getAllEmployees": [
            {
                "id": 1,
                "first_name": null,
                "last_name": null,
                "salary": 5500
            },
            {
                "id": 2,
                "first_name": null,
                "last_name": null,
                "salary": 7200
            },
            {
                "id": 3,
                "first_name": null,
                "last_name": null,
                "salary": 6000
            },
            {
                "id": 4,
                "first_name": null,
                "last_name": null,
                "salary": 6800
            },
            {
                "id": 5,
                "first_name": null,
                "last_name": null,
                "salary": 4750
            },
            {
                "id": 6,
                "first_name": null,
                "last_name": null,
                "salary": 5100
            },
            {
                "id": 7,
                "first_name": null,
                "last_name": null,
                "salary": 8500
            },
            {
                "id": 8,
                "first_name": null,
                "last_name": null,
                "salary": 8000
            }
        ]
    },
    "extensions": null
}

Environment:

I am running on MacOS Catalina Version 10.15.3
Java Version: 12.0.1
graphql-spring-boot-starter version: 3.6.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.