Skip to content
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

Error trying to save Json in version 2.19.* #853

Closed
arturo-villalpando opened this issue Jul 14, 2023 · 1 comment
Closed

Error trying to save Json in version 2.19.* #853

arturo-villalpando opened this issue Jul 14, 2023 · 1 comment
Assignees
Labels
bug An existing feature is not working as intended

Comments

@arturo-villalpando
Copy link

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'

Captura de pantalla 2023-07-13 a la(s) 18 09 24

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/arturo-villalpando/FMS
  2. Clone the repo and install the requirements

pip3 install -r requirements.txt

  1. Run the repo and go to http://localhost:8000/graphql
  2. Try to execute the next query for add a fat category:

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:

Captura de pantalla 2023-07-13 a la(s) 18 17 32

Screenshots or code snippets
Screenshots help a lot. If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Mac OSX
  • Version: 13.4.1

What database are you using?

  • Type: Postgres
  • Version: 14.8
  • Masonite ORM: 2.19.*

Additional context
There is no problem trying to save the json in Masonite ORM version 2.18.6.

@arturo-villalpando arturo-villalpando added the bug An existing feature is not working as intended label Jul 14, 2023
@josephmancuso josephmancuso self-assigned this Sep 10, 2023
@josephmancuso
Copy link
Member

this is fixed in v2.19.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An existing feature is not working as intended
Projects
None yet
Development

No branches or pull requests

2 participants