feat: Expose triggers of twitter integration with app query

This commit is contained in:
Faruk AYDIN
2021-11-06 22:45:20 +01:00
committed by Ömer Faruk Aydın
parent c8e3a458ff
commit a3dd76df21
3 changed files with 26 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ import { GraphQLObjectType, GraphQLString, GraphQLList, GraphQLInt } from 'graph
import fieldType from './field';
import authenticationStepType from './authentication-step';
import reconnectionStepType from './reconnection-step';
import triggerType from './trigger';
const appType = new GraphQLObjectType({
name: 'App',
@@ -18,6 +19,7 @@ const appType = new GraphQLObjectType({
fields: { type: GraphQLList(fieldType) },
authenticationSteps: { type: GraphQLList(authenticationStepType) },
reconnectionSteps: { type: GraphQLList(reconnectionStepType) },
triggers: { type: GraphQLList(triggerType) },
connections: { type: GraphQLList(connectionType) },
}
}

View File

@@ -0,0 +1,12 @@
import { GraphQLObjectType, GraphQLString, GraphQLList, GraphQLInt } from 'graphql';
const triggerType = new GraphQLObjectType({
name: 'Trigger',
fields: {
name: { type: GraphQLString },
key: { type: GraphQLString },
description: { type: GraphQLString }
}
})
export default triggerType;