#1 2019-06-06 09:26:54

Beertjie
Member
From: South Africa
Registered: 2018-09-09
Posts: 14

GraphQL?

Are there any plans for GraphQL support in the future?

Offline

#2 2019-06-06 15:33:11

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: GraphQL?

I made some investigations some years ago, and find it interesting, but difficult to implement properly.
Worth viewing to find out more about the scope needed to implement a GraphQL server is https://www.youtube.com/watch?v=gY48GW87Feo

What I think for is to offer a new way 3rd of defining services, in addition to the existing 2:
1. Method-based services (low-level, REST-like)
2. Interface-based services (RPC-like)
3. Class-based services (GraphQL-like)

In fact, we may implement a GraphQL server using a set of dedicated classes.
Published properties and getter methods may be used to define the type system, and lazy call the application/ORM layer.

Any input/feedback is welcome!

Offline

#3 2019-06-07 03:22:41

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: GraphQL?

I guess implementing a GraphGL server would be very complex. The wikipedia page says GraphGL is not suitable for simple API.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

Board footer

Powered by FluxBB