Sorry if this has been asked before. What is the b...
# orm-help
c
Sorry if this has been asked before. What is the best way to do integration testing using Nexus? Ideally something in the form
Copy code
import { makeSchema } from 'nexus';
import * as allTypes from './typeDefs';
import { graphql } from 'graphql';

export const schema = makeSchema({
  types: allTypes,
});

const query = `{ __schema { types { name } } }`;

graphql(schema, query).then(response => {
  console.log(util.inspect(response, { showHidden: false, depth: null }));
});
Thanks in advance 🙂