diff --git a/packages/api/app/query.js b/packages/api/app/query.js index f9f8079951..2416fc97f9 100644 --- a/packages/api/app/query.js +++ b/packages/api/app/query.js @@ -97,6 +97,14 @@ class Query { serialize() { return this.state; } + + reset() { + return q(this.state.table); + } + + serializeAsString() { + return JSON.stringify(this.serialize()); + } } export function q(table) { diff --git a/upcoming-release-notes/6331.md b/upcoming-release-notes/6331.md new file mode 100644 index 0000000000..223507de2f --- /dev/null +++ b/upcoming-release-notes/6331.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [BHChen24] +--- + +Updates the `Query` class in `packages/api/app/query.js` to include the missing `reset()` and `serializeAsString()` methods.