Comments (2)
Looks like you're trying to create a new "mission" with a specific ID which logically fails if you dont have permission to do so. The error is pretty on-point there, you cannot assign an object (non-int) to an integer field:
mutation Update_executed_post_item {
update_executed_post_item(
id: "25"
data: { adjustements: [{ title: "missing tool", mission_id: 25 }] }
) {
id
}
}
Closing this issue for now since it looks to be an invalid payload for the permissions you've set. Happy to re-open if that is not the case.
from directus.
I agree that if the user does not have creation/modification rights, then they should only populate mission_id.
However, in this perspective, populating only the ID should also work for a user with modification rights, which is not currently the case, and another exception is raised. This is why GraphQL types "change" depending on the rights, which I believe is a problem.
After, I add the modification right
The same request doesn't work anymore
from directus.
Related Issues (20)
- The main search function does not include the Translations fields HOT 2
- Incorrect variable scoping for `Displays To Summarize Relational Items` extension guide
- [Error] Could not load (plugin commonjs) - file watching crashing
- EXTENSIONS_AUTO_RELOAD feature does not work in Docker Container HOT 1
- Migration from 10.10.5 to 10.12.1 fails HOT 1
- Can't upload large files with S3 storage driver HOT 8
- Invalid foreign key on One-to-Many fields
- Many-to-Many (m2m) fields to not render translations properly without saving
- Include image extension when uploading images in preview URL & WYSIWYG content.
- Import of a JSON File with approx. 30.000 rows -> Failure Message "This file´s data structure does not match the collection." But after 1-2 hours datas are correctly imported.
- Updating Directus Version from 10.8 to 10.12 HOT 6
- Incorrect types infered for M2O/M2M relations in SDK for query filter
- Records with custom permission are not available in the API. HOT 2
- Numeric Fields for Labels Display - Configuration type problem
- Flows logs are not shown in flow sidebar HOT 1
- Flows - unable to use id/key in payload from Read Data operation HOT 1
- SDK type error on readItems when using 'datetime' literal HOT 3
- Make flow names & descriptions translatable
- The s3 file health-xxxxx generated by the health check was not cleared successfully HOT 3
- `items.read` doesn't seem to trigger every time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directus.