Last active
September 1, 2018 04:13
-
-
Save unicodeveloper/e1d01e94fb2b13db18d68f44ead979ed to your computer and use it in GitHub Desktop.
Mvrp schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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