Skip to content

Commit e68e44d

Browse files
author
lvijayachan
committed
Adding jvm overloads
1 parent 9fb855f commit e68e44d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/client/codegen/GraphQLQueryRequest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ import graphql.language.OperationDefinition
2323
import graphql.language.SelectionSet
2424
import graphql.schema.Coercing
2525

26-
class GraphQLQueryRequest(
26+
class GraphQLQueryRequest @JvmOverloads constructor(
2727
val query: GraphQLQuery,
2828
val projection: BaseProjectionNode? = null,
2929
scalars: Map<Class<*>, Coercing<*, *>>? = null
3030
) {
3131

3232
private var selectionSet: SelectionSet? = null
3333

34-
constructor(query: GraphQLQuery, selectionSet: SelectionSet, scalars: Map<Class<*>, Coercing<*, *>>? = null) : this(query = query, scalars = scalars) {
34+
@JvmOverloads constructor(query: GraphQLQuery, selectionSet: SelectionSet, scalars: Map<Class<*>, Coercing<*, *>>? = null) : this(query = query, scalars = scalars) {
3535
this.selectionSet = selectionSet
3636
}
3737

0 commit comments

Comments
 (0)