× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I've heard .net can run on the IBMi (not sure why you'd want to though, could instead use a commodity windows server), and there's a heavily used .NET GraphQL library out there to make interacting with GraphQL endpoints easy:

https://github.com/graphql-dotnet/graphql-dotnet

Look at the # of downloads for those libraries, pretty heavy usage from those numbers, 6.7 million downloads for the root GraphQL library.

Build it in .NET Core and you can run on any OS....

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Jon Paris
Sent: Tuesday, October 19, 2021 10:56 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: GraphQL, YAJL, IBMi?

CAUTION: This email originated from outside of the ARRT. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Might want to pose the question on the OS list Brad - or on Ryver. Maybe someone has used Typescript to produce the query data.


Jon

On Oct 19, 2021, at 11:13 AM, Brad Stone <bvstone@xxxxxxxxx> wrote:

Does it work to build GraphQL and then insert that into JSON? Example:

{
"query": "query Search($input: mySearch!) {
search {
transactions(input: $input, first: 20) {
pageInfo {
hasNextPage
startCursor
endCursor
},
edges {
node {
id
status
amount {
value
currencyIsoCode
}
}
cursor
}
}
}
}"

Notice the data inside the "query" JSON object looks like JSON, but
it's not... It's GraphQL.

That's why I think it's silly to change JSON just enough to make tons
more work.. why not just use straight JSON the whole way through?
What is the advantage to GraphQL?

On Tue, Oct 19, 2021 at 10:03 AM Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:

Have you considered using DATA-GEN to build it Brad? You could use
Barbara's example or Scott's YAJLDTAGEN as a foundation. More
versatile that stringing the stuff out.


Jon Paris


On Oct 19, 2021, at 10:48 AM, Brad Stone <bvstone@xxxxxxxxx> wrote:

Well, of course as things go in the IT world these days, we can't
leave well enough alone.

Anyhow, I'm working on a project that uses GraphQL. I was thinking
at first "ok, cool... its basically JSON".

No, it's not. It's JSON without delimiters, basically. Why change
a
good
thing when JSON would work just fine?

Anyhow, at this point I only need to build GraphQL and put it in
JSON for web service requests (and not parse it). But, I'm curious
if anyone else is dealing with it, or if YAJL has options for this
(I didn't see any),
or
what other methods people are using.

It looks like I just need to build the GraphQL data, then I could
use
YAJL
to put that into a JSON variable. But if I'm doing that, why even
use
YAJL
just to wrap the GraphQL in JSON? (ie, just use literals).

Yes, I think it's silly... I'd still love to hear why we can't use
JSON instead of GraphQL.. I mean, I've seen JSON inside of JSON
(which is just as silly).

Job security maybe? :)

</Getting old man rant>

Bradley V. Stone
www.bvstools.com
Native IBM i e-Mail solutions for Microsoft Office 365, Gmail, or
any
Cloud
Provider!


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.