Repository URL to install this package:
|
Version:
1.2.7 ▾
|
"use strict";
var _graphene = require("graphene");
let User = class User extends _graphene.ObjectType {
constructor(...args) {
var _temp;
return _temp = super(...args), this.name = new _graphene.String(), _temp;
}
};
let Query = class Query extends _graphene.ObjectType {
constructor(...args) {
var _temp2;
return _temp2 = super(...args), this.getUser = new User({
id: new _graphene.String()
}), _temp2;
}
getUserResolver({
id
}) {
return {
name: "Syrus"
};
}
};
const schema = new _graphene.Schema({
query: Query
});