Skip to content

Instantly share code, notes, and snippets.

@mr-pascal
Created December 31, 2020 12:47
Show Gist options
  • Save mr-pascal/877fd5edbb91cc9c2cc9c443a130bfe8 to your computer and use it in GitHub Desktop.
Save mr-pascal/877fd5edbb91cc9c2cc9c443a130bfe8 to your computer and use it in GitHub Desktop.
// src/index.ts
import {gql} from 'mercurius-codegen';
const typeDefs = gql`
type Query {
""" Method to add two integers """
add(
" First integer "
x: Int,
" Second integer "
y: Int
): Int
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment