Open
Description
When a single entity is called, the odata service is not called according to the specified odata protocol. With very strict odata services (e.g. SAP) this leads to errors.
Protocol: https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_Entity
Implementation graphql mesh odata handler
function addIdentifierToUrl(url, identifierFieldName, identifierFieldTypeRef, args) {
// Only round brackets are allowed and a string must be surrounded with '
url.href += (typeof args[identifierFieldName] === 'string') ? `('${args[identifierFieldName]}')` : `(${args[identifierFieldName]})`;
}
Metadata
Metadata
Assignees
Labels
No labels