Created
September 1, 2021 10:19
-
-
Save aqkhan/cdb8cd3d5f5e6b6471dd7b56a0cf8c96 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const { gql } = require("apollo-server-express"); | |
| const typeDefs = gql` | |
| type Customer { | |
| id: ID | |
| email: String | |
| name: String | |
| active: Boolean | |
| } | |
| type Query { | |
| findAllCustomers: [Customer] | |
| } | |
| `; | |
| module.exports = typeDefs; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment