Possible to fetch GraphQL schema through REST

18 views
Skip to first unread message

elvin.d...@gmail.com

unread,
Oct 24, 2024, 11:31:03 AM10/24/24
to TopBraid Suite Users
I would like to offer our client a GraphQL query frontend based on GraphiQL, in a custom dashboard. 

If you look at the examples for having autocomplete in the editor here: https://github.com/graphql/graphiql/tree/main/packages/codemirror-graphql#readme a schema is needed (in the first example they hardcode it in fragments).

It would be nice to be able to dynamically fetch the schema for a given asset collection in EDG and then call the ...youredgserver/tbl/graphql/_ using a custom GraphiQL frontend.

I hope this makes sense, is such a thing possible?
Many thanks again
Kind regards
EMD

Holger Knublauch

unread,
Oct 24, 2024, 12:19:08 PM10/24/24
to 'Luis Enrique Ramos García' via TopBraid Suite Users
The GraphiQL page that is bundled with TopBraid is doing exactly the same. If you look at the web traffic you can see how?

Holger


--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/topbraid-users/c2080831-af8b-4c5f-85a8-bd87ef85d653n%40googlegroups.com.

elvin.d...@gmail.com

unread,
Oct 24, 2024, 12:40:00 PM10/24/24
to TopBraid Suite Users
I'll give it a go and see if I can catch it, thanks H.

Op donderdag 24 oktober 2024 om 18:19:08 UTC+2 schreef Holger Knublauch:
Reply all
Reply to author
Forward
0 new messages