prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Create shortcut function for GraphQLMiddleware.make_simple_server
  Getting started with Ariadne could be made even simpler by providing shortcut function abstracting the `GraphQLMiddleware` away on first contact, thus saving users possible confusion about what they really are doing.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `ariadne/utils.py`
  Content:
  ```
  1 from graphql import parse
  2 
  3 
  4 def gql(value: str) -> str:
  5     parse(value)
  6     return value
  7
  ```
  
  Path: `ariadne/__init__.py`
  Content:
  ```
  1 from .executable_schema import make_executable_schema
  2 from .resolvers import add_resolve_functions_to_schema, default_resolver, resolve_to
  3 from .utils import gql
  4 from .wsgi_middleware import GraphQLMiddleware
  5 
  6 __all__ = [
  7     "GraphQLMiddleware",
  8     "add_resolve_functions_to_schema",
  9     "default_resolver",
  10     "make_executable_schema",
  11     "resolve_to",
  12     "gql",
  13 ]
  14
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/ariadne/__init__.py b/ariadne/__init__.py
  --- a/ariadne/__init__.py
  +++ b/ariadne/__init__.py
  @@ -1,6 +1,6 @@
   from .executable_schema import make_executable_schema
   from .resolvers import add_resolve_functions_to_schema, default_resolver, resolve_to
  -from .utils import gql
  +from .utils import gql, start_simple_server
   from .wsgi_middleware import GraphQLMiddleware
   
   __all__ = [
  @@ -10,4 +10,5 @@
       "make_executable_schema",
       "resolve_to",
       "gql",
  +    "start_simple_server",
   ]
  diff --git a/ariadne/utils.py b/ariadne/utils.py
  --- a/ariadne/utils.py
  +++ b/ariadne/utils.py
  @@ -1,6 +1,26 @@
  +from typing import List, Union
  +
   from graphql import parse
   
  +from .wsgi_middleware import GraphQLMiddleware
  +
   
   def gql(value: str) -> str:
       parse(value)
       return value
  +
  +
  +def start_simple_server(
  +    type_defs: Union[str, List[str]],
  +    resolvers: Union[dict, List[dict]],
  +    host: str = "127.0.0.1",
  +    port: int = 8888,
  +):
  +    try:
  +        print("Simple GraphQL server is running on the http://%s:%s" % (host, port))
  +        graphql_server = GraphQLMiddleware.make_simple_server(
  +            type_defs, resolvers, host, port
  +        )
  +        graphql_server.serve_forever()
  +    except KeyboardInterrupt:
  +        pass
  
verification_info: {"golden_diff": "diff --git a/ariadne/__init__.py b/ariadne/__init__.py\n--- a/ariadne/__init__.py\n+++ b/ariadne/__init__.py\n@@ -1,6 +1,6 @@\n from .executable_schema import make_executable_schema\n from .resolvers import add_resolve_functions_to_schema, default_resolver, resolve_to\n-from .utils import gql\n+from .utils import gql, start_simple_server\n from .wsgi_middleware import GraphQLMiddleware\n \n __all__ = [\n@@ -10,4 +10,5 @@\n     \"make_executable_schema\",\n     \"resolve_to\",\n     \"gql\",\n+    \"start_simple_server\",\n ]\ndiff --git a/ariadne/utils.py b/ariadne/utils.py\n--- a/ariadne/utils.py\n+++ b/ariadne/utils.py\n@@ -1,6 +1,26 @@\n+from typing import List, Union\n+\n from graphql import parse\n \n+from .wsgi_middleware import GraphQLMiddleware\n+\n \n def gql(value: str) -> str:\n     parse(value)\n     return value\n+\n+\n+def start_simple_server(\n+    type_defs: Union[str, List[str]],\n+    resolvers: Union[dict, List[dict]],\n+    host: str = \"127.0.0.1\",\n+    port: int = 8888,\n+):\n+    try:\n+        print(\"Simple GraphQL server is running on the http://%s:%s\" % (host, port))\n+        graphql_server = GraphQLMiddleware.make_simple_server(\n+            type_defs, resolvers, host, port\n+        )\n+        graphql_server.serve_forever()\n+    except KeyboardInterrupt:\n+        pass\n", "issue": "Create shortcut function for GraphQLMiddleware.make_simple_server\nGetting started with Ariadne could be made even simpler by providing shortcut function abstracting the `GraphQLMiddleware` away on first contact, thus saving users possible confusion about what they really are doing.\n", "before_files": [{"content": "from graphql import parse\n\n\ndef gql(value: str) -> str:\n    parse(value)\n    return value\n", "path": "ariadne/utils.py"}, {"content": "from .executable_schema import make_executable_schema\nfrom .resolvers import add_resolve_functions_to_schema, default_resolver, resolve_to\nfrom .utils import gql\nfrom .wsgi_middleware import GraphQLMiddleware\n\n__all__ = [\n    \"GraphQLMiddleware\",\n    \"add_resolve_functions_to_schema\",\n    \"default_resolver\",\n    \"make_executable_schema\",\n    \"resolve_to\",\n    \"gql\",\n]\n", "path": "ariadne/__init__.py"}], "after_files": [{"content": "from typing import List, Union\n\nfrom graphql import parse\n\nfrom .wsgi_middleware import GraphQLMiddleware\n\n\ndef gql(value: str) -> str:\n    parse(value)\n    return value\n\n\ndef start_simple_server(\n    type_defs: Union[str, List[str]],\n    resolvers: Union[dict, List[dict]],\n    host: str = \"127.0.0.1\",\n    port: int = 8888,\n):\n    try:\n        print(\"Simple GraphQL server is running on the http://%s:%s\" % (host, port))\n        graphql_server = GraphQLMiddleware.make_simple_server(\n            type_defs, resolvers, host, port\n        )\n        graphql_server.serve_forever()\n    except KeyboardInterrupt:\n        pass\n", "path": "ariadne/utils.py"}, {"content": "from .executable_schema import make_executable_schema\nfrom .resolvers import add_resolve_functions_to_schema, default_resolver, resolve_to\nfrom .utils import gql, start_simple_server\nfrom .wsgi_middleware import GraphQLMiddleware\n\n__all__ = [\n    \"GraphQLMiddleware\",\n    \"add_resolve_functions_to_schema\",\n    \"default_resolver\",\n    \"make_executable_schema\",\n    \"resolve_to\",\n    \"gql\",\n    \"start_simple_server\",\n]\n", "path": "ariadne/__init__.py"}]}