graphqexl v0.1.0-alpha-rc.25 Graphqexl.Utils.FakeData

Contains some basic fake post, comment and user data to use in development/testing.

Link to this section Summary

Functions

Get a single comment by ID

Get all comments

Get a single post by ID

Get all posts

Get a single user by ID

Get all comments for a single user by ID

Get all posts for a single user by ID

Get all users

Link to this section Functions

Link to this function

comment(id)

(since 0.1.0)
comment(String.t()) :: Map.t()

Get a single comment by ID

Returns: Map.t/0

Link to this function

comments()

(since 0.1.0)
comments() :: [Map.t()]

Get all comments

Returns: [t:Map.t/0]

Link to this function

post(id)

(since 0.1.0)
post(String.t()) :: Map.t()

Get a single post by ID

Returns: Map.t/0

Link to this function

posts()

(since 0.1.0)
posts() :: [Map.t()]

Get all posts

Returns: [t:Map.t/0]

Link to this function

user(id)

(since 0.1.0)
user(String.t()) :: Map.t()

Get a single user by ID

Returns: Map.t/0

Link to this function

user_comments(id)

(since 0.1.0)
user_comments(String.t()) :: [Map.t()]

Get all comments for a single user by ID

Returns: [t:Map.t/0]

Link to this function

user_posts(id)

(since 0.1.0)
user_posts(String.t()) :: [Map.t()]

Get all posts for a single user by ID

Returns: [t:Map.t/0]

Link to this function

users()

(since 0.1.0)
users() :: [Map.t()]

Get all users

Returns: [t:Map.t/0]