-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Custom object import csv #3756
Custom object import csv #3756
Conversation
I don't think you missed anything important, this is the same direction I had in mind! One challenge will be to handle creating relationships by passing an Id but we can do that in another issue/PR! |
I think this shouldn't be a problem ... Do we validate these relation ids before the graphql insert ? |
Im a bit confused figuring out the problem with the test - shouldn't the mocked response be matched? They seem to be the same ?
|
Mmh I don't see the issue either! The only thing is with
We have foreign keys in DB so it will fail at that layer probably... (unless pg_graphql catches it before but I doubt it). It will force us to improve that kind of error handling, same problem with the API anyone can use already |
Apparently it was the undefined - thanks :) |
…te fields, allow only import relations where toRelationMetadata
Should be fixed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect! Tested again and it works (including creating the relationship)
Thanks a lot!!!
@quest-bot loot #3247 |
Quest PR submitted!@brendanlaschke You are attempting to solve the issue and loot this Quest. Will you be successful? Questions? Check out the docs. |
🧚 @brendanlaschke congratulations for completing Quest #3247 💰 A reward of $250 has been credited to you. To claim your $250 reward follow the instructions here. Questions? Check out the docs. |
Adds the csv import for all objects.
closes #3247