Skip to content

Instantly share code, notes, and snippets.

@wyattjoh
Created August 18, 2017 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wyattjoh/7c1afcb34ab4c4858cb4de8540c4fa08 to your computer and use it in GitHub Desktop.
Save wyattjoh/7c1afcb34ab4c4858cb4de8540c4fa08 to your computer and use it in GitHub Desktop.
Disable asset creation plugin
module.exports = {
resolvers: {
RootQuery: {
asset: async (obj, {id}, {loaders: {Assets}}) => {
if (!id) {
return null;
}
return Assets.getByID.load(id);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment