Building an api that will allow me to grab correct data.
Unanswered
SkippTekk posted this in #help-forum
So, im wondering what would be the best way to do the following
user logs in and goes to the "dashboard", Now with this dashboard, i need to grab the account ID, and match it to another database. Then from that database, i need to grab it's matched data from that fetch and bring it back to the dashboard where i can pull more data (using the backend data) using the data-fetching function....
this is basically the best i can explain at the current moment. Hopefully someone gets this.
user logs in and goes to the "dashboard", Now with this dashboard, i need to grab the account ID, and match it to another database. Then from that database, i need to grab it's matched data from that fetch and bring it back to the dashboard where i can pull more data (using the backend data) using the data-fetching function....
this is basically the best i can explain at the current moment. Hopefully someone gets this.
11 Replies
@SkippTekk calm down bb
sounds like you just need to make a few calls in a function
no big deal
@DirtyCajunRice | AppDir <@267920707248193537> calm down bb
Do you by chance have the docs or examples I can read?
you were super generic
assume the account id is stored in a cookie
get the account id from cookie, pass it to the “big daddy fetch functionâ€
then fetch / query each of your endpoints as you described
return the collated mutated data to your server component
@DirtyCajunRice | AppDir Docs for what though
Would you be willing to give me a hand on getting it started? My structure isn't the greatest but it still works at least xD