Binding to Tagged template function

Is there a way to easily bind to js library that use tagged template function style ?
postgres in my case, but I also think of others such as styled-components, or graphql-tag

1 Like

I have been lobbying for this for more than a year :grin:. Would make the current tagged template support in graphql-ppx less hacky.

So I guess no :disappointed:

The best way to do it at the moment that I am aware of is the following:

%%raw("require('gql')` your query `")

And if you need to pass something in:

%%raw("something => require('gql')` your query ${something} `")(something)
2 Likes