graphql

jacekschae 2021-06-23T06:53:34.032Z

Wanted to let you know that in the latest episode of ClojureScript Podcast I talked to @hlship about Lacinia, check it out at https://clojurescriptpodcast.com

đź‘Ť 5
1
isak 2021-06-24T21:27:23.032600Z

Good info. This is a minor thing, but @hlship for uploading files to a GraphQL, at my work we just arguments like "fileRef" (String), where it refers to a named part of a multipart request. So you would for example have 1 part that has the file contents, and one part that has the normal GraphQL JSON payload (query and variables). FWIW, this has worked fine for us.

isak 2021-06-24T21:33:15.032800Z

In C#, making the request looks like this:

souenzzo 2021-06-28T23:08:40.039200Z

@hlship do you have some txt resource (blog, etc...) talking about "why REST do not make sense". I totally agree with you. the idea of "transfer state" always sound odd for me, because it's always a partial message. Do you have some txts resources (a blog or somethign like) about it?

steveb8n 2021-06-29T06:26:54.039400Z

@hlship great podcast. I learned a lot. I particularly like the idea of not using JSON for my own clients and having Lacinia use EDN. I didn’t think of that but have been wondering how to maintain namespace keys

steveb8n 2021-06-29T06:27:52.039600Z

I have a question: why did Walmart switch from interceptors to directives for authentication? I can understand for authorization (finer grained) but it seems like auth-n is simpler as an interceptor?

isak 2021-06-29T15:07:45.039800Z

My guess: Directives are exposed in the GraphQL Schema metadata, interceptors aren't, so it helps make better client programs.

steveb8n 2021-06-29T23:16:52.043100Z

@isak that’s a good point. so a client knows that it needs to escalate privs when accessing specific roots/objects. @hlship is this correct?

steveb8n 2021-07-01T01:46:03.043300Z

for anyone following this thread, this article is very informative https://blog.logrocket.com/graphql-directives-are-underrated/

1
steveb8n 2021-07-01T01:46:30.043600Z

on this info, I guess Walmart auth directives are schema side only i.e. not exposed to client

isak 2021-07-01T14:23:41.047900Z

Ah, I guess I was wrong. I was thinking "of course they are exposed", but no: https://github.com/graphql/graphql-spec/issues/300

🙏 2