chore: Start with uppercase letter for grahpQL type names

This commit is contained in:
Faruk AYDIN
2021-10-20 14:06:12 +02:00
committed by Ali BARIN
parent a7582a4503
commit bc0fe5323e
7 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
import { GraphQLObjectType, GraphQLString } from 'graphql'; import { GraphQLObjectType, GraphQLString } from 'graphql';
const authLinkType = new GraphQLObjectType({ const authLinkType = new GraphQLObjectType({
name: 'authLink', name: 'AuthLink',
fields: { fields: {
url: { type: GraphQLString } url: { type: GraphQLString }
} }

View File

@@ -1,7 +1,7 @@
import { GraphQLObjectType, GraphQLString, GraphQLList, GraphQLInt } from 'graphql'; import { GraphQLObjectType, GraphQLString, GraphQLList, GraphQLInt } from 'graphql';
const authenticationStepType = new GraphQLObjectType({ const authenticationStepType = new GraphQLObjectType({
name: 'authenticationStep', name: 'AuthenticationStep',
fields: { fields: {
step: { type: GraphQLInt }, step: { type: GraphQLInt },
type: { type: GraphQLString }, type: { type: GraphQLString },

View File

@@ -1,7 +1,7 @@
import { GraphQLString, GraphQLObjectType } from 'graphql'; import { GraphQLString, GraphQLObjectType } from 'graphql';
const connectionDataType = new GraphQLObjectType({ const connectionDataType = new GraphQLObjectType({
name: 'connectionData', name: 'ConnectionData',
fields: { fields: {
screenName: { type: GraphQLString }, screenName: { type: GraphQLString },
} }

View File

@@ -2,7 +2,7 @@ import { GraphQLObjectType, GraphQLString, GraphQLBoolean } from 'graphql';
import connectionDataType from './connection-data'; import connectionDataType from './connection-data';
const connectionType = new GraphQLObjectType({ const connectionType = new GraphQLObjectType({
name: 'connection', name: 'Connection',
fields: () => { fields: () => {
const appType = require('./app').default; const appType = require('./app').default;

View File

@@ -1,7 +1,7 @@
import { GraphQLObjectType, GraphQLString, GraphQLBoolean} from 'graphql'; import { GraphQLObjectType, GraphQLString, GraphQLBoolean} from 'graphql';
const fieldType = new GraphQLObjectType({ const fieldType = new GraphQLObjectType({
name: 'field', name: 'Field',
fields: { fields: {
key: { type: GraphQLString }, key: { type: GraphQLString },
label: { type: GraphQLString }, label: { type: GraphQLString },

View File

@@ -1,7 +1,7 @@
import { GraphQLString, GraphQLInputObjectType } from 'graphql'; import { GraphQLString, GraphQLInputObjectType } from 'graphql';
const twitterCredentialInputType = new GraphQLInputObjectType({ const twitterCredentialInputType = new GraphQLInputObjectType({
name: 'twitterCredentialInput', name: 'TwitterCredentialInput',
fields: { fields: {
consumerKey: { type: GraphQLString }, consumerKey: { type: GraphQLString },
consumerSecret: { type: GraphQLString }, consumerSecret: { type: GraphQLString },

View File

@@ -1,7 +1,7 @@
import { GraphQLString, GraphQLObjectType } from 'graphql'; import { GraphQLString, GraphQLObjectType } from 'graphql';
const twitterCredentialInputType = new GraphQLObjectType({ const twitterCredentialInputType = new GraphQLObjectType({
name: 'twitterCredential', name: 'TwitterCredential',
fields: { fields: {
consumerKey: { type: GraphQLString }, consumerKey: { type: GraphQLString },
consumerSecret: { type: GraphQLString }, consumerSecret: { type: GraphQLString },