Repository URL to install this package:
|
Version:
1.2.13 ▾
|
"use strict";
var _graphene = require("graphene");
class User extends _graphene.ObjectType {}
Object.defineProperty(User, "fields", {
configurable: true,
enumerable: true,
writable: true,
value: {
getUser: new User({
id: new _graphene.String()
})
}
});
class Query extends _graphene.ObjectType {
getUser({
id
}) {
return {
name: "Syrus"
};
}
}
Object.defineProperty(Query, "getUser", {
configurable: true,
enumerable: true,
writable: true,
value: new User({
id: new _graphene.String()
})
});
const schema = new _graphene.Schema({
query: Query
});