Skip to content

Commit

Permalink
Changed query_reference.dart to now support the new where style.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrorabau committed Oct 13, 2022
1 parent 6a2705f commit 8c748b5
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 39 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,14 @@ class ${data.queryReferenceImplName}
${data.queryReferenceInterfaceName} where$titledNamed({$prototype}) {
return ${data.queryReferenceImplName}(
reference.where('${field.name}', $parameters,),
_collection,
\$referenceWithoutCursor: \$referenceWithoutCursor.where(${field.field}, $parameters),
\$queryCursor: \$queryCursor,
);
// return ${data.queryReferenceImplName}(
// reference.where('${field.name}', $parameters,),
// _collection,
// );
}
''',
);
Expand Down Expand Up @@ -542,9 +547,14 @@ class ${data.queryReferenceImplName}
}
return ${data.queryReferenceImplName}(
reference.where('${field.name}', $parameters,),
_collection,
\$referenceWithoutCursor: \$referenceWithoutCursor.where(${field.field}, $parameters),
\$queryCursor: \$queryCursor,
);
// return ${data.queryReferenceImplName}(
// reference.where('${field.name}', $parameters,),
// _collection,
// );
}
''',
);
Expand All @@ -558,9 +568,14 @@ class ${data.queryReferenceImplName}
whereNotIn?.forEach((e) { _whereNotInList?.add(e.name); });
return ${data.queryReferenceImplName}(
reference.where('${field.name}', $parameters,),
_collection,
\$referenceWithoutCursor: \$referenceWithoutCursor.where(${field.field}, $parameters),
\$queryCursor: \$queryCursor,
);
// return ${data.queryReferenceImplName}(
// reference.where('${field.name}', $parameters,),
// _collection,
// );
}
''',
);
Expand Down

0 comments on commit 8c748b5

Please sign in to comment.