diz6157
diz6157
TtRPC
Created by diz6157 on 5/2/2023 in #❓-help
Best practices in naming and defining procedures when they don't fit into standard buckets?
i'll post one
26 replies
TtRPC
Created by diz6157 on 5/2/2023 in #❓-help
Best practices in naming and defining procedures when they don't fit into standard buckets?
Sure thing. Thanks for the help Nick!
26 replies
TtRPC
Created by diz6157 on 5/2/2023 in #❓-help
Best practices in naming and defining procedures when they don't fit into standard buckets?
so that we could have client.list.query(...), client.list.mutate(...)
26 replies
TtRPC
Created by diz6157 on 5/2/2023 in #❓-help
Best practices in naming and defining procedures when they don't fit into standard buckets?
(i'm guessing that in that case "list" is a procedure)
26 replies
TtRPC
Created by diz6157 on 5/2/2023 in #❓-help
Best practices in naming and defining procedures when they don't fit into standard buckets?
is there a way to provide all 3 for a single resource?
26 replies
TtRPC
Created by diz6157 on 5/2/2023 in #❓-help
Best practices in naming and defining procedures when they don't fit into standard buckets?
in that case: what if your list can be queried and mutated and subscribed?
26 replies
TtRPC
Created by diz6157 on 5/2/2023 in #❓-help
Best practices in naming and defining procedures when they don't fit into standard buckets?
that's a good point. So I'm assuming query=get, mutation=post
26 replies
TtRPC
Created by diz6157 on 5/2/2023 in #❓-help
Best practices in naming and defining procedures when they don't fit into standard buckets?
I can have a wrapper that abstracts the client returned from createTRPCProxyClient which removes the extra category, that's all i could come up with
26 replies
TtRPC
Created by diz6157 on 5/2/2023 in #❓-help
Best practices in naming and defining procedures when they don't fit into standard buckets?
(or rather, is there a way to avoid using a category, so that my client is just client.giveAccountAccess() which is nice and predictable?)
26 replies
TtRPC
Created by diz6157 on 5/2/2023 in #❓-help
Best practices in naming and defining procedures when they don't fit into standard buckets?
right, but my question is, why the need to have "mutate()" or "query()" at the end of the function?
26 replies