Skip to content
Snippets Groups Projects
Commit f3e1f8d5 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Allow passing variables to the query in object CRUD list

parent d34acbf0
No related branches found
No related tags found
1 merge request!1208Resolve "Data management for the Models `Room` and `SchoolTerm`"
Pipeline #133303 failed
......@@ -177,6 +177,11 @@ export default {
type: Object,
required: true,
},
gqlVariables: {
type: Object,
required: false,
default: undefined,
},
gqlCreateMutation: {
type: Object,
required: false,
......@@ -225,6 +230,12 @@ export default {
items() {
return {
query: this.gqlQuery,
variables() {
if (this.gqlVariables) {
return this.gqlVariables;
}
return {};
},
error: function (error) {
this.handleError(error);
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment