s04e01---.net-5-graphql-api's People
Forkers
lucasrosinelli linoymalakkaran olegtar83 sntushelo cuongmedia werayootk aftergul gautam958 orgatony dony2100 eaglemay bionstt bondesvick anupsingh2008 damilolaadegunwa rohan-buechner marttp malikgr8 brocadez phillymza zephirorb alkharashiam samisuleman10 sureshyalamanchi mmanjoura meyerjoe andrewwilkin jmherning khalil-alhadidi lakshmadu kreeldor hnguyenec aramirez-asuresoftware sofien-chaouch timnguyen90 kbmanikanta chinonso098 ziggy6792 sundeep8051 dkay2017 yzhu228 nanditho nagurshaikh-lab hitesh297 beratyesbek ndoumbejaures irohangoel asleekgeek brunovicenteb erapote sudeepa11 weixuan2008 chapz24 trockey pedroobritoo-wds04e01---.net-5-graphql-api's Issues
nested queries not working
Platform query exposes sorting by LicenseKey
Hi,
I found out after looking at you YT video, that schema exposes the LiceseKey for sorting.
It is suggested to you when typing, and I verified that is does work as one should expect.
But, I think that this is leaking domain model to our GraphQL models (types) as we have choosen to ignore that field.
Is there an OOTB way to hide that field from ordering ?
I assume it is there as the GetPlatform-Query returns the domain object Platform, not the PlatformType; but how should the code be modified? Can we return the PlatformType as a result in Query, how should the binding to DbContext look like than
Question on performance
Hi Les! Thanks for your presentation, very helpful.
A question regarding performance. I noticed that even you specify limited fields of your entity, the generated SQL query is fetching all the fields.
ex:
graphQL query:
query {
platform {
name
}
}
generates:
info: 8/22/2021 18:10:09.844 RelationalEventId.CommandExecuted[20101] (Microsoft.EntityFrameworkCore.Database.Command)
Executed DbCommand (35ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [p].[Id], [p].[LicenseKey], [p].[Name]
FROM [Platforms] AS [p]
Is there a way to fetching only desired field from DB?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.