-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Creating asset doesn't work #791
Comments
mutation {
createAsset(
parentId: 1,
filename: "foo1",
type: "text",
input: {
filename: "foo",
parentId: 1,
data: "ewogICAgImZpZWxkY29sbGVjdGlvbiI6IFsKICAgICAgICB7CiAgICAgICAgICAgICJwYXJlbn...."
}) {
success
message
}
} When providing input, it works. However it should not expect duplicate info in the input e.g. filename, parentId etc. |
@dvesh3 thakns for clarifying, but it shouldn't be necessary to define |
Also the docs are wrong in this case 😊 |
@brusch yes, that's what i meant by "However it should not expect duplicate info in the input e.g. filename, parentId etc." 😊 |
…ename (#798) * [Mutation] Fix CreateAsset mutation not considering required field filename - resolves #791 * [Mutation] Add assets docs * [Mutation] Fix asset delete by id or fullpath * Apply php-cs-fixer changes --------- Co-authored-by: dvesh3 <[email protected]>
Fixed by #798 |
Expected behavior
Thw following mutation throws an error:
Error message:
Actual behavior
Throws an error
Steps to reproduce
Run the above query
The text was updated successfully, but these errors were encountered: