Comments (13)
see also https://github.com/graphql/graphiql
from netcoreblockly.
Generate blocks from a graphql definition.
from netcoreblockly.
Example form graphql with EF :
https://visualstudiomagazine.com/articles/2020/01/28/graphql-data-retrieval.aspx
( we have alread an SqlServer in memory with Deparments and employee)
from netcoreblockly.
https://visualstudiomagazine.com/articles/2020/05/04/flexible-graphql-queries.aspx
from netcoreblockly.
https://developer.okta.com/blog/2019/04/16/graphql-api-with-aspnetcore
from netcoreblockly.
There is already a database context in the project to be used:
services.AddDbContext(options => options
from netcoreblockly.
https://github.com/cosminpopescu14/NETCoreBlockly/tree/feature/graphql
from netcoreblockly.
-
Ce obeicte si tipuri am in schema
var typesKindName = @"{
__schema {
types {
name kind
}
}
}"; -
Iterare in obiectele astea cu kindObject si trimiti {
__type(name: "ObiectulMeuOGT") {
name
fields {
name
type {
name
kind
}
}
}
}
3 creezi pt ObiectulMeuOGT cate un GraphQLTypeArgument cu nume si propeietati care sunt filed-urile
from netcoreblockly.
https://graphql-dotnet.github.io/docs/getting-started/arguments/
from netcoreblockly.
Step 1; Intrebi de
{
__schema {
queryType {
name kind
}
}
}
Step 2.
Cu name , iei obiectul si field-urile ( astea vor fi actiunile)
Step 3
Pentru fiecare field, iei sub obiectele si le pui in clase
from netcoreblockly.
{ "kind":"OBJECT",
"name":"GetAllQuery",
"description":null,
"fields":[ { "name":"departmentQuery",
"description":null,
"args":[
],
"type":{ "kind":"LIST",
"name":null,
"ofType":{
"kind":"OBJECT",
"name":"DepartmentOGT",
"ofType":null
}
},
"isDeprecated":false,
"deprecationReason":null
},
{ "name":"employeeQuery",
"description":null,
"args":[
],
"type":{ "kind":"LIST",
"name":null,
"ofType":{
"kind":"OBJECT",
"name":"EmployeeOGT",
"ofType":null
}
},
"isDeprecated":false,
"deprecationReason":null
},
{ "name":"getOneDepartment",
"description":null,
"args":[ { "name":"id",
"description":null,
"type":{
"kind":"SCALAR",
"name":"ID",
"ofType":null
},
"defaultValue":"null"
}
],
"type":{
"kind":"OBJECT",
"name":"DepartmentOGT",
"ofType":null
},
"isDeprecated":false,
"deprecationReason":null
}
],
"inputFields":null,
"interfaces":[
],
"enumValues":null,
"possibleTypes":null
}
from netcoreblockly.
https://i.kym-cdn.com/entries/icons/original/000/028/021/work.jpg
from netcoreblockly.
Implemented
from netcoreblockly.
Related Issues (20)
- Weekly Digest (12 July, 2020 - 19 July, 2020)
- make a checkbox to activate this debugger for every instruction HOT 2
- Weekly Digest (26 July, 2020 - 2 August, 2020)
- Weekly Digest (2 August, 2020 - 9 August, 2020)
- CVE-2020-8175 (Medium) detected in jpeg-js-0.3.7.tgz
- CVE-2020-11023 (Medium) detected in jquery-3.3.1.min.js, jquery-3.3.1.js
- solve how the GUI is displayed for team
- CVE-2019-0820 (High) detected in system.text.regularexpressions.4.3.0.nupkg
- CVE-2021-26701 (High) detected in system.text.encodings.web.4.5.0.nupkg
- CVE-2021-21252 (High) detected in jquery.validate-1.17.0.js, jquery.validate-1.17.0.min.js
- CVE-2021-34532 (Medium) detected in microsoft.aspnetcore.authentication.jwtbearer.3.1.4.nupkg
- CVE-2020-15522 (Medium) detected in portable.bouncycastle.1.8.1.3.nupkg
- CVE-2017-0256 (Medium) detected in system.net.http.4.3.0.nupkg
- CVE-2017-0247 (High) detected in system.net.http.4.3.0.nupkg
- CVE-2021-22570 (Medium) detected in google.protobuf.3.6.1.nupkg
- CVE-2022-25851 (High) detected in jpeg-js-0.4.3.tgz - autoclosed HOT 1
- Easy way to add Blockly
- WS-2022-0161 (High) detected in multiple libraries
- CVE-2022-1941 (High) detected in google.protobuf.3.6.1.nupkg
- Save => Save Local error : local api it is not yet loaded - please try again after loading HOT 2
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.
from netcoreblockly.