Skip to content

Instantly share code, notes, and snippets.

@unicodeveloper
Last active September 1, 2018 04:13
Show Gist options
  • Save unicodeveloper/e1d01e94fb2b13db18d68f44ead979ed to your computer and use it in GitHub Desktop.
Save unicodeveloper/e1d01e94fb2b13db18d68f44ead979ed to your computer and use it in GitHub Desktop.
Mvrp schema
import { ApolloServer, gql } from 'apollo-server';
const typeDefs = gql`
type Car {
id: Int!
plateNumber: String!
color: String!
model: String!
chasisNumber: String!
vehicleStatus: String!
yearOfManufacture: Int!
issueDate: String!
expiryDate: String!
}
type Query {
car(plateNumber: String!): Car
cars: [Car]
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment