Closed oliverjanik closed 8 years ago
In RunAtomAsync<T>
, T
is IEumerable
. IEnumerable
is not JToken
type. So, it won't be converted using the 2nd-pass converter. You'll need to ask for T
as JArray
(RunAtomAsync<JArray>
) which derives from JToken
and pick off the JObjects
from within the JArray
.
:last_quarter_moon: :last_quartermoon: [**"Uh huh, you know what it is. Black and yellow..."**_](https://www.youtube.com/watch?v=nWAGLkyxQG0)
Works beautifully. Thanks again.
This is a continuation from #39.
Using the latest stable 2.3.3 the second pass for JObject is performed when I do:
I get correct display like this:
However when I ask for an IEnumerable of JObjects the conversion is not performed:
This returns:
It looks like JObject is special cased somewhere. I'm wandering what happens If I ask for
IDictionary<string, JObject>
. I've tried plainobject
and the second pass conversion does not happen either.I'm using RethinkDB fully dynamically. I don't have classes for my data. That's the main reason I picked RethinkDB. My queries are composed of ReqlExpr on the fly. Is this a use case you want to fully support in this driver? Sorry for creating headaches for you.