Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support System.Text.Json #1501

Closed
tsanton opened this issue Mar 12, 2024 · 2 comments
Closed

feat: support System.Text.Json #1501

tsanton opened this issue Mar 12, 2024 · 2 comments

Comments

@tsanton
Copy link

tsanton commented Mar 12, 2024

Is your feature request related to a problem? Please describe.
I would like to be able to to use System.Text.Json with Gremlinq

Describe the solution you'd like
Create a support package for System.Test.Json along the line of ExRam.Gremlinq.Support.NewtonsoftJson.

Describe alternatives you've considered
Sticking to NewtonsoftJson, but my company has fully migrated to System.Text.Json and does not want to use two json libraries.

Additional context
System.Text.Json is becoming omnipresent and a preferred choice for many. Implementing support would make adoption of this library easier for many.

Consider sponsoring me
Depending on timeline and amount of work we can of course contribute in order to have it in place :)

@danielcweber
Copy link
Contributor

It's in the works, although as a commercial offering. Stay tuned.

@tsanton
Copy link
Author

tsanton commented Mar 12, 2024

@danielcweber whilst I'm at it (tell me to create a new issue if thats preferred), but is there any simple way to AddRangeAsync? I know you can AddV().AddV() but I have the need batch create dynamic amounts of vertexes and I'd love to save the roundtrips.

Further, is it possible to AddV with multiple Edges? as pr the docs this is possible:

await _g
        .AddV(new Person { Name = "Bob", Age = 36 })
        .AddE<Knows>()
        .To(__ => __
            .AddV(new Person { Name = "Jeff", Age = 27 }))

But I'm not able to make this work (or with more):

await _g
        .AddV(new Person { Name = "Bob", Age = 36 })
        .AddE<Knows>()
        .To(__ => __
            .AddV(new Person { Name = "Jeff", Age = 27 }))
        .AddE<Knows>()
        .To(__ => __
           .V(AnotherPerson.Id))

Lastly there's the need to batch created vertexes with one or more OutE..

Any pointers to docs would be greatly appreciated! If doable, but impractical to explain, please let me know and I can book a session :)

@Gremlinq Gremlinq locked and limited conversation to collaborators Apr 29, 2024
@danielcweber danielcweber converted this issue into discussion #1561 Apr 29, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants