You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to wrap my legacy MySQL databases with Hasura. I have 1 tenant per MySQL database (these are on different servers around the world).
So far I have a Prisma server sitting in front of each MySQL database. This gives me 1 graphql URL per tenant. All URLs will have the same schema.
In Hasura, this works if I set the "Remote Schema URL" to 1 tenant at a time.
The correct Remote Schema URL is actually embedded inside my JWT authorization token given to Hasura. Ideally I want to specify this as my Remote Schema URL: {authorization.jwt.my_remote_url} or something.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to wrap my legacy MySQL databases with Hasura. I have 1 tenant per MySQL database (these are on different servers around the world).
So far I have a Prisma server sitting in front of each MySQL database. This gives me 1 graphql URL per tenant. All URLs will have the same schema.
In Hasura, this works if I set the "Remote Schema URL" to 1 tenant at a time.
The correct Remote Schema URL is actually embedded inside my JWT authorization token given to Hasura. Ideally I want to specify this as my Remote Schema URL:
{authorization.jwt.my_remote_url}
or something.Or do you have any other ideas?
Beta Was this translation helpful? Give feedback.
All reactions