Skip to content

Commit 6693078

Browse files
committed
refactor(core): Reduced parameters of abstract classes
1 parent 0517900 commit 6693078

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

core/src/main/kotlin/schema/Classes.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ package org.cufy.graphkt.schema
8282
* @since 2.0.0
8383
*/
8484
abstract class GraphQLObjectClass<T : Any>(
85-
name: String? = null,
8685
block: GraphQLObjectTypeBlock<T>
87-
) : GraphQLObjectType<T> by GraphQLObjectType(name, block)
86+
) : GraphQLObjectType<T> by GraphQLObjectType(null, block)
8887

8988
/**
9089
* A convenient class for defining graphql interface
@@ -96,9 +95,8 @@ abstract class GraphQLObjectClass<T : Any>(
9695
* @since 2.0.0
9796
*/
9897
abstract class GraphQLInterfaceClass<T : Any>(
99-
name: String? = null,
10098
block: GraphQLInterfaceTypeBlock<T>
101-
) : GraphQLInterfaceType<T> by GraphQLInterfaceType(name, block)
99+
) : GraphQLInterfaceType<T> by GraphQLInterfaceType(null, block)
102100

103101
/**
104102
* A convenient class for defining graphql input object
@@ -110,7 +108,5 @@ abstract class GraphQLInterfaceClass<T : Any>(
110108
* @since 2.0.0
111109
*/
112110
abstract class GraphQLInputObjectClass<T : Any>(
113-
name: String? = null,
114-
constructor: GraphQLInputConstructor<T>? = null,
115111
block: GraphQLInputObjectTypeBlock<T>
116-
) : GraphQLInputObjectType<T> by GraphQLInputObjectType(name, constructor, block)
112+
) : GraphQLInputObjectType<T> by GraphQLInputObjectType(null, null, block)

0 commit comments

Comments
 (0)