Preserve withSingle backwards-compatibility

This commit is contained in:
SachaG 2018-08-30 20:02:09 +09:00
parent 0f4f77a058
commit 3ca76c198c

View file

@ -34,7 +34,7 @@ export default function withSingle(options) {
return graphql(query, {
alias: `with${typeName}`,
options({ selector }) {
options({ documentId, slug, selector = { documentId, slug } }) { // OpenCrud backwards compatibility
const graphQLOptions = {
variables: {
input: {