21 lines
438 B
JavaScript
21 lines
438 B
JavaScript
const {
|
|
GraphQLString,
|
|
GraphQLObjectType,
|
|
GraphQLID
|
|
} = require('graphql');
|
|
|
|
module.exports = new GraphQLObjectType({
|
|
name: 'SnapshotType',
|
|
description: 'Policies are lists of rules that describe access to resources',
|
|
fields: {
|
|
name: {
|
|
type: GraphQLID,
|
|
description: 'The name of this snapshot'
|
|
},
|
|
state: {
|
|
type: GraphQLString,
|
|
description: 'The current state of the snapshot'
|
|
}
|
|
}
|
|
});
|