20 lines
304 B
JavaScript
20 lines
304 B
JavaScript
import {
|
|
GraphQLList,
|
|
} from 'graphql';
|
|
import { PlotterType } from '../types';
|
|
import { Plotter } from '../../models';
|
|
|
|
const args = {};
|
|
|
|
const resolve = () => Plotter.find();
|
|
|
|
const query = {
|
|
plotters: {
|
|
type: new GraphQLList(PlotterType),
|
|
args,
|
|
resolve,
|
|
},
|
|
};
|
|
|
|
export default query;
|