Giter VIP home page Giter VIP logo

Comments (13)

ignatandrei avatar ignatandrei commented on May 24, 2024 1

see also https://github.com/graphql/graphiql

from netcoreblockly.

ignatandrei avatar ignatandrei commented on May 24, 2024

Generate blocks from a graphql definition.

from netcoreblockly.

ignatandrei avatar ignatandrei commented on May 24, 2024

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.

ignatandrei avatar ignatandrei commented on May 24, 2024

https://visualstudiomagazine.com/articles/2020/05/04/flexible-graphql-queries.aspx

from netcoreblockly.

cosminpopescu14 avatar cosminpopescu14 commented on May 24, 2024

https://developer.okta.com/blog/2019/04/16/graphql-api-with-aspnetcore

from netcoreblockly.

ignatandrei avatar ignatandrei commented on May 24, 2024

There is already a database context in the project to be used:

services.AddDbContext(options => options

from netcoreblockly.

cosminpopescu14 avatar cosminpopescu14 commented on May 24, 2024

https://github.com/cosminpopescu14/NETCoreBlockly/tree/feature/graphql

from netcoreblockly.

cosminpopescu14 avatar cosminpopescu14 commented on May 24, 2024
  1. Ce obeicte si tipuri am in schema
    var typesKindName = @"{
    __schema {
    types {
    name kind
    }
    }
    }";

  2. 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.

ignatandrei avatar ignatandrei commented on May 24, 2024

https://graphql-dotnet.github.io/docs/getting-started/arguments/

from netcoreblockly.

ignatandrei avatar ignatandrei commented on May 24, 2024

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.

cosminpopescu14 avatar cosminpopescu14 commented on May 24, 2024

{ "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.

cosminpopescu14 avatar cosminpopescu14 commented on May 24, 2024

https://i.kym-cdn.com/entries/icons/original/000/028/021/work.jpg

from netcoreblockly.

cosminpopescu14 avatar cosminpopescu14 commented on May 24, 2024

Implemented

from netcoreblockly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.