SpRestLib
SpRestLib copied to clipboard
Column Modified by cannot be loaded (400) The query to field 'Editor' is not valid.
I am using this syntax:
return sprLib .list({ name: this.config.answers, baseUrl: this.state.queryBaseUrl }) .items({ listCols: { dataObjectID: { dataName: "Id" }, status: { dataName: "STATUS" }, notes: { dataName: "NOTES" }, lastModifiedAt: { dataName: "Modified" }, modifiedBy: { dataName: "Editor"} }, queryFilter: "Title eq '" + queryString.parse(this.props.location.search).bid + "'" })
This is in the error message: The $select query string must specify the target fields and the $expand query string must contains Editor
How can I use expand parameter in this case?