This commit is contained in:
2017-02-10 00:33:25 +00:00
commit a3e6ce3fb5
99 changed files with 11317 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import { GraphQLList as List } from 'graphql';
import PersonItemType from '../types/PersonItemType';
import Person from '../models/Person';
const getPersonByKey = {
type: new List(PersonItemType),
resolve({ request }) {
const params = request.body.params;
if (params && params.key) {
return Person.findAll({
where: {
key: params.key,
},
limit: 1,
});
}
return false;
},
};
export default getPersonByKey;