Skip to content

Commit

Permalink
Reset graphql_schema state instead of restarting graphql app
Browse files Browse the repository at this point in the history
  • Loading branch information
Premwoik committed Oct 26, 2021
1 parent ab7dcfd commit deb0fdc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mongoose_graphql.erl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

-spec init() -> ok.
init() ->
application:stop(graphql),
application:start(graphql),
graphql_schema:reset(),
PrivDir = code:priv_dir(mongooseim),
{ok, SchemaData} = file:read_file( filename:join(PrivDir, ?SCHEMA_PATH)),
Mapping = mapping_rules(),
Expand Down

0 comments on commit deb0fdc

Please sign in to comment.