Created
December 23, 2022 06:20
-
-
Save omar-dulaimi/6a32994754aa3b9979b568616670e93e to your computer and use it in GitHub Desktop.
How to make a GET request query params for tRPC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const query = { where: {} }; | |
const queryString = encodeURIComponent(JSON.stringify(query)); | |
const finalUrl = `http://127.0.0.1:3001/trpc/user.listUsers?${queryString}`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment