Skip to content

Rebaiahmed/Learning-graphql

Repository files navigation

Roadmap-To-learn-Graphql


Graphql

My Roadmap to practise graphql with different technologies and discover different libraries

Table of Contents

Spring-graphql โœ”๏ธ

Maven dependncies :

<dependency>
			<groupId>com.graphql-java</groupId>
			<artifactId>graphql-spring-boot-starter</artifactId>
			<version>5.0.2</version>
		</dependency>
		<dependency>
			<groupId>com.graphql-java</groupId>
			<artifactId>graphql-java-tools</artifactId>
			<version>5.2.4</version>
</dependency>

GraphQL Schema :

type Vehicle
{
id: ID!,
type: String,
modelCode: String,
brandName: String,
launchDate: String
}

type Query {
vehicles(count: Int):[Vehicle]
vehicle(id:ID):Vehicle
}

type Mutation
{
createVehicle(type: String!, modelCode: String!, brandName: String, launchDate: String):Vehicle
}

Query Resolver :

@Component
public class VehicleQuery implements GraphQLQueryResolver {

Mutation :

public class VehicleMutation implements GraphQLMutationResolver {

    @Autowired
    private VehicleService vehicleService;

    public Vehicle createVehicle(final String type, final String modelCode, final String brandName, final String launchDate) {
        return this.vehicleService.createVehicle(type, modelCode, brandName, launchDate);
    }
}

Nodejs_graphql โœ”๏ธ

npm dependncies :

"dependencies": {
    "express": "^4.17.1",
    "express-graphql": "^0.9.0",
    "graphql": "^15.0.0"
  }

GraphQl Schema :

// Build the schema //
var schema = buildSchema(
    `
   type Query {
       hello:String
   } 
    
    `
)

GraphQl Resolver:

var root = {
    hello: () => {
      return 'Hello world!';
    },
  };

Apollo_server ๐Ÿ”


Apollo_client ๐Ÿ”


Angular_graphql ๐Ÿ”


Prisma ๐Ÿ”


React Relay ๐Ÿ”


Other ๐Ÿ”

About

Roadmap to Learn GraphQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published