Commit Graph

2 Commits

Author SHA1 Message Date
Alex Wright e73a55cfeb Failed attempt at rendering JSON for the rest view
I think something changed for rocket 0.5 becuase rustc is telling me:

```
the trait `Responder<'_, '_>` is not implemented for
  `rocket_contrib::json::Json<Person>`
```

Which I think doesn't make sense. It's their contrib wrapper over serde?
It's versioned ~.4 though so I think I need to bump that.
2021-07-11 15:14:40 +00:00
Alex Wright b7211a77e4 This took most of today to get working.
GraphQL interface to a list of names.. to can query by id, and can add
names. There's no dupe check, no remove/delete, not even a way to
enumerate stored values.

The trickiest part of the incrementing id for addPerson. Initially I
reused some of the HashMap in a Mutex pattern to store u32s, well u8 at
first but that doesn't cast to a juniper scalar type. I don't know why
that didn't work. The incremented value didn't seem to persist in the
hash.
2021-07-11 13:33:02 +00:00