Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
fix: result list should not be equatable
Browse files Browse the repository at this point in the history
  • Loading branch information
Arenukvern committed May 17, 2021
1 parent 8197453 commit c3964b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class GqlModelBuilder extends GqlObjectTypeDefinition {
final Set<Parameter> defaultConstructorInitializers = {};
// FIXME: Issue #2
String itemsBaseTypeName = '';
for (final field in typeDefinition.fields) {
void fillField(gql_schema.FieldDefinition field) {
final args = field.args;
if (args != null && args.isNotEmpty == true) {
fillClassMethodField(
Expand All @@ -139,6 +139,10 @@ class GqlModelBuilder extends GqlObjectTypeDefinition {
);
}
}

for (final field in typeDefinition.fields) {
fillField(field);
}
if (serializable) {
fillSerializers(
definedMethods: definedMethods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class GqlObjectTypeDefinition {
],
),
);
final getters = isEquatable
final getters = isEquatable && !isResultList
? [
Method(
(m) => m
Expand Down

0 comments on commit c3964b6

Please sign in to comment.