-
Notifications
You must be signed in to change notification settings - Fork 11
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
Write query that pulls fruit/vegetable info from Trefle API #7
Comments
Assign it to me @capndave |
Will do! If you would, please just set up your own account for the Trefle API, and import the connection settings into Django with an environment variable from a .env file in the |
@rexdivakar let me know if you're still working on this, if not I'll unassign you |
Yes I'm working on it will update it soon @capndave |
hey @capndave Currently I'mpulling all the varieties of tomatoes, now i would like to know few details,
|
Awesome! The parameters I'd like to return to the client are |
no prob, i can get it done but do u want the output in the form of list or dictionary ? |
Dictionary please. Basically you'll need to make a graphql query that accepts |
I will raise the PR soon |
What do u think about dumping the data into a json file !! So we can even use it often with less network load ? |
GREAT idea! I guess we could just check the |
If u have a larger work load we can go with Redis or Memcache but with smaller use case we can use .json (feed files) what do u say ? |
Sounds great!
|
In Plants app, write handler to pull data from Trefle API. Ultimately we want a user of this (gardenbuilder-backend) to write a GraphQL query, passing in a fruit or vegetable name ("Tomato", for example). This handler/function would then query all of the tomato varieties from the Treffle API, return them, and then return all the tomato varieties to the user/graphql interface.
The text was updated successfully, but these errors were encountered: