edgedb / edgedb-net

The official .NET client library for EdgeDB
https://edgedb.com
Apache License 2.0
82 stars 9 forks source link

Add anonymous type arguments to query methods #46

Closed quinchs closed 1 year ago

quinchs commented 1 year ago

Summary

This pr adds new extension methods that turn anonymous classes into arguments for queries, this allows a new api call like so:

var result = await client.QueryAsync<string>("select <str>$abc", new
{
    abc = "def"
});

In addition to this, the generic-less query methods were moved to be extensions, rather than default implementations of IEdgeDBQueryable