vicious-gold
vicious-gold6mo ago

GraphQL types not lowercase

We are using the
graphqlDataProvider
graphqlDataProvider
to help craft up some gql queries. But- Our resources are cased like 'Asset' and 'Product'- Those are the names of the resources passed from the
getList
getList
function. When the query gets submitted, the provider sets the entityType to 'asset' and 'product'. Is there a way have it passed as defined?
5 Replies
kapa.ai
kapa.ai6mo ago
Hi @mjd. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. The information extracts provided do not contain specific details on how to customize the casing of resource names when using the graphqlDataProvider in Refine. However, Refine's GraphQL data provider is built with gql-query-builder (https://github.com/atulmy/gql-query-builder) and graphql-request (https://github.com/prisma-labs/graphql-request), and it's designed to send dynamic queries. It's possible that there might be a way to customize the casing of your resource names within these libraries. I would recommend checking the documentation for these libraries, as well as the Refine documentation on data providers (https://refine.dev/docs/data/data-provider/), for more information. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai6mo ago
<@752243518545854624> kapa.ai is still learning and improving, please let us know how it did by reacting below
vicious-gold
vicious-gold6mo ago
@kapa.ai I dont think those libraries are changing the case.
kapa.ai
kapa.ai6mo ago
Let me check the knowledge base for you. One moment! :books: ---------------------- I apologize for the confusion. Based on the information provided in the extracts, there's no specific detail on how to customize the casing of resource names when using the graphqlDataProvider in Refine. Refine is designed to work seamlessly with various data providers and it's possible that the casing of the resource names is being handled internally by Refine or the graphqlDataProvider. Unfortunately, without more information or context, it's difficult to provide a definitive solution. I would recommend reaching out to the Refine community or support for more specific guidance on this issue. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai6mo ago
<@752243518545854624> kapa.ai is still learning and improving, please let us know how it did by reacting below