mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 03:05:24 +08:00
12 lines
438 B
JavaScript
12 lines
438 B
JavaScript
// TODO: Adjust `RootQuery.asset(id: ID, url: String)` to instead be
|
|
// `RootQuery.asset(id: ID, url: String!)` because we'll always need the url, if
|
|
// this change is done now everything will likely break on the front end.
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
// Load the typeDefs from the graphql file.
|
|
const typeDefs = fs.readFileSync(path.join(__dirname, 'typeDefs.graphql'), 'utf8');
|
|
|
|
module.exports = typeDefs;
|