Skip to content

Commit

Permalink
Update the local schema to match with remote schema
Browse files Browse the repository at this point in the history
  • Loading branch information
DimuthuMadushan committed Sep 19, 2023
1 parent 9798f5f commit c1fe784
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ public void testGetInputTypeFieldsMap() throws ValidationException, CmdException
List<String> generatedInputObjectTypes = SpecReader.getInputObjectTypeNames(schema);
List<String> expectedInputTypeFields = Arrays.asList("code StringQueryOperatorInput?",
"continent StringQueryOperatorInput?", "code StringQueryOperatorInput?",
"currency StringQueryOperatorInput?", "code StringQueryOperatorInput?", "nin string[]?",
"regex string?", "ne string?", "glob string?", "eq string?", "'in string[]?");
"currency StringQueryOperatorInput?", "name StringQueryOperatorInput?",
"code StringQueryOperatorInput?", "nin string[]?", "regex string?", "ne string?", "glob string?",
"eq string?", "'in string[]?");
for (String generatedInputObjectType: generatedInputObjectTypes) {
Map<String, FieldType> generatedInputTypeFieldsMap =
SpecReader.getInputTypeFieldsMap(schema, generatedInputObjectType);
Expand Down
1 change: 1 addition & 0 deletions graphql-cli/src/test/resources/expectedGenCode/types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ public type ContinentFilterInput record {
public type CountryFilterInput record {
StringQueryOperatorInput? continent?;
StringQueryOperatorInput? code?;
StringQueryOperatorInput? name?;
StringQueryOperatorInput? currency?;
};

Expand Down
1 change: 1 addition & 0 deletions graphql-cli/src/test/resources/specs/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ input CountryFilterInput {
code: StringQueryOperatorInput
continent: StringQueryOperatorInput
currency: StringQueryOperatorInput
name: StringQueryOperatorInput
}

input LanguageFilterInput {
Expand Down

0 comments on commit c1fe784

Please sign in to comment.