Skip to content

Commit e6ed5c8

Browse files
author
Shane Myrick
committed
Combine interface and default implementation into single file
1 parent 40dc47d commit e6ed5c8

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

graphql-kotlin-schema-generator/src/main/kotlin/com/expediagroup/graphql/execution/EmptyGraphQLContext.kt

Lines changed: 0 additions & 22 deletions
This file was deleted.

graphql-kotlin-schema-generator/src/main/kotlin/com/expediagroup/graphql/execution/GraphQLContext.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ package com.expediagroup.graphql.execution
2121
* as the GraphQL context. This means the implementing class will not appear in the schema.
2222
*/
2323
interface GraphQLContext
24+
25+
/**
26+
* Can be used as a default [GraphQLContext] if there is none provided.
27+
*/
28+
class EmptyGraphQLContext : GraphQLContext

0 commit comments

Comments
 (0)