Closed arturo-villalpando closed 9 months ago
Describe the bug
I used Fastapi + Masonite ORM + Strawberry
I'm trying to save a JSON in a JSON field of PostgreSQL, the problem is that when I trying im getting the next error:
Message:
masoniteorm.query.QueryBuilder.QueryBuilder.create() got multiple values for keyword argument 'id_key'
To Reproduce Steps to reproduce the behavior:
pip3 install -r requirements.txt
mutation MyMutation { addFaqCategory( data: {category: "[{\"category\":\"Basketball\"}]", deletedAt: null} ) { id category deletedAt } }
5.- Go to the requirements.txt file and change the version of masonite-orm to 2.19.* 6.- Run again the query an you will get the error
Expected behavior Save the json in database:
Screenshots or code snippets Screenshots help a lot. If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
What database are you using?
Additional context There is no problem trying to save the json in Masonite ORM version 2.18.6.
this is fixed in v2.19.2
Describe the bug
I used Fastapi + Masonite ORM + Strawberry
I'm trying to save a JSON in a JSON field of PostgreSQL, the problem is that when I trying im getting the next error:
Message:
masoniteorm.query.QueryBuilder.QueryBuilder.create() got multiple values for keyword argument 'id_key'
To Reproduce Steps to reproduce the behavior:
pip3 install -r requirements.txt
mutation MyMutation { addFaqCategory( data: {category: "[{\"category\":\"Basketball\"}]", deletedAt: null} ) { id category deletedAt } }
5.- Go to the requirements.txt file and change the version of masonite-orm to 2.19.* 6.- Run again the query an you will get the error
Expected behavior Save the json in database:
Screenshots or code snippets Screenshots help a lot. If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
What database are you using?
Additional context There is no problem trying to save the json in Masonite ORM version 2.18.6.