GraphQL: ACL (#5957)

* Spec

Fix Spec

* Add ACL Type + Input

* Improvements

* Fix
This commit is contained in:
Antoine Cormouls
2019-10-02 06:47:56 +02:00
committed by Antonio Davi Macedo Coelho de Castro
parent 9cf3b52bef
commit 2290145e82
10 changed files with 465 additions and 187 deletions

View File

@@ -110,7 +110,7 @@ const load = function(
return {
...createdObject,
updatedAt: createdObject.createdAt,
...fields,
...parseFields,
...optimizedObject,
};
} catch (e) {
@@ -153,6 +153,7 @@ const load = function(
auth,
info
);
const selectedFields = getFieldNames(mutationInfo);
const { keys, include } = extractKeysAndInclude(selectedFields);
@@ -179,7 +180,7 @@ const load = function(
return {
id,
...updatedObject,
...fields,
...parseFields,
...optimizedObject,
};
} catch (e) {