Skip to content

Commit 9520b94

Browse files
committed
failing unit test
1 parent bbe0c09 commit 9520b94

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { GraphQLKotlinCodegenConfig } from "../../../src/plugin";
2+
3+
export default {
4+
onlyTypes: ["MyIncludedType", "MyIncludedInterfaceInOnlyTypes"],
5+
} satisfies GraphQLKotlinCodegenConfig;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.kotlin.generated
2+
3+
import com.expediagroup.graphql.generator.annotations.*
4+
5+
@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.OBJECT])
6+
data class MyIncludedType(
7+
val field: String? = null,
8+
val field2: String
9+
)
10+
11+
interface MyIncludedInterfaceInOnlyTypes {
12+
val field: String?
13+
val field2: String
14+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
type MyIncludedType {
2+
field: String
3+
field2: String!
4+
}
5+
6+
union MyExcludedUnion = MyIncludedType
7+
8+
interface MyIncludedInterfaceInOnlyTypes {
9+
field: String
10+
field2: String!
11+
}
12+
13+
type MyExcludedType implements MyIncludedInterfaceInOnlyTypes {
14+
field: String
15+
field2: String!
16+
}

0 commit comments

Comments
 (0)