Will you guys consider using GraphQL with your .NET apis?
@ilFusta
14 күн бұрын
Great video very informative! But what if the model I want to be available to the front-end is different from the EF one? And how can the db queries be optimized in the case of a large and complex graph with multiple levels.
@IsraelQuiroz
14 күн бұрын
THANK YOU! well if you want the model to be available to the frontend then you need to create a model on the frontend and backend as long as you have access to both, you are always allowed to use custom models if u need to for db queries i think that would come down to understanding your db schema and only taking what u want as well as improving the db (indexing, etc...)
@ilFusta
13 күн бұрын
@@IsraelQuiroz what i mean is: What if i want the client to be able to operate only on a subset of the Database (EF Core) model or if I have data that should be organized in a different way than the Databae rapresentation? Should I query the db mapping the result to a DTO? Another question: Do you know if HotChocolate is woking on the EF Core Level in the query genration to filter the required fields or if it's filtering the fields on the response after selecting everything from the query?
@robertmrobo8954
11 күн бұрын
@@ilFusta You asked all the questions I had in mind, waiting for the answers.
@IsraelQuiroz
11 күн бұрын
@robertmrobo8954 and @ilFusta #1. If u don't make the data available via the schema then the client side can't get to it And next to handle extra mappings or custom logic and such i think u have to use Type Extensions I think that's what they are called #2. Hot chocolate uses IQueryable so it's done on the DB chillicream.com/docs/hotchocolate/v13/fetching-data/filtering
@IsraelQuiroz
11 күн бұрын
i got u ;) check the reply
@rachael5611
12 күн бұрын
God loves you! You can repent and believe that Jesus paid the price for our sins! Because He can give you so much love, joy and peace! God bless you You are worthy in His eyes! :)
Пікірлер: 8