GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
219 B

  1. package users
  2. import (
  3. "git.aiterp.net/rpdata/api/models"
  4. )
  5. // Find finds a user by id
  6. func Find(id string) (models.User, error) {
  7. user := models.User{}
  8. err := collection.FindId(id).One(&user)
  9. return user, err
  10. }