Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benawad/lireddit
/ functions
Functions
76 in github.com/benawad/lireddit
⨍
Functions
76
◇
Types & classes
33
↓ 3 callers
Function
betterUpdateQuery
( cache: Cache, qi: QueryInput, result: any, fn: (r: Result, q: Query) => Query )
web/src/utils/betterUpdateQuery.tsx:3
↓ 3 callers
Function
toErrorMap
(errors: FieldError[])
web/src/utils/toErrorMap.ts:3
↓ 3 callers
Function
useMeQuery
(baseOptions?: Apollo.QueryHookOptions<MeQuery, MeQueryVariables>)
web/src/generated/graphql.tsx:681
↓ 2 callers
Function
createApolloClient
(apolloClient, initialState, ctx)
web/src/utils/createWithApollo.js:185
↓ 2 callers
Function
initApolloClient
(apolloClient, initialState, ctx)
web/src/utils/createWithApollo.js:58
↓ 2 callers
Function
invalidateAllPosts
(cache: Cache)
web/src/utils/createUrqlClient.ts:70
↓ 2 callers
Function
isServer
()
web/src/utils/isServer.ts:1
↓ 2 callers
Function
updateAfterVote
( value: number, postId: number, cache: ApolloCache<VoteMutation> )
web/src/components/UpdootSection.tsx:15
↓ 2 callers
Function
useGetIntId
()
web/src/utils/useGetIntId.ts:3
↓ 2 callers
Function
usePostQuery
(baseOptions?: Apollo.QueryHookOptions<PostQuery, PostQueryVariables>)
web/src/generated/graphql.tsx:724
↓ 1 callers
Function
createUpdootLoader
()
server/src/utils/createUpdootLoader.ts:6
↓ 1 callers
Function
createUserLoader
()
server/src/utils/createUserLoader.ts:6
↓ 1 callers
Function
createWithApollo
(ac)
web/src/utils/createWithApollo.js:85
↓ 1 callers
Function
cursorPagination
()
web/src/utils/createUrqlClient.ts:34
↓ 1 callers
Function
initOnContext
(ac, ctx)
web/src/utils/createWithApollo.js:16
↓ 1 callers
Function
main
()
server/src/index.ts:22
↓ 1 callers
Function
sendEmail
(to: string, html: string)
server/src/utils/sendEmail.ts:4
↓ 1 callers
Function
useChangePasswordMutation
(baseOptions?: Apollo.MutationHookOptions<ChangePasswordMutation, ChangePasswordMutationVariables>)
web/src/generated/graphql.tsx:392
↓ 1 callers
Function
useCreatePostMutation
(baseOptions?: Apollo.MutationHookOptions<CreatePostMutation, CreatePostMutationVariables>)
web/src/generated/graphql.tsx:430
↓ 1 callers
Function
useDeletePostMutation
(baseOptions?: Apollo.MutationHookOptions<DeletePostMutation, DeletePostMutationVariables>)
web/src/generated/graphql.tsx:460
↓ 1 callers
Function
useForgotPasswordMutation
(baseOptions?: Apollo.MutationHookOptions<ForgotPasswordMutation, ForgotPasswordMutationVariables>)
web/src/generated/graphql.tsx:490
↓ 1 callers
Function
useGetPostFromUrl
()
web/src/utils/useGetPostFromUrl.ts:6
↓ 1 callers
Function
useIsAuth
()
web/src/utils/useIsAuth.ts:5
↓ 1 callers
Function
useLoginMutation
(baseOptions?: Apollo.MutationHookOptions<LoginMutation, LoginMutationVariables>)
web/src/generated/graphql.tsx:523
↓ 1 callers
Function
useLogoutMutation
(baseOptions?: Apollo.MutationHookOptions<LogoutMutation, LogoutMutationVariables>)
web/src/generated/graphql.tsx:552
↓ 1 callers
Function
usePostsQuery
(baseOptions?: Apollo.QueryHookOptions<PostsQuery, PostsQueryVariables>)
web/src/generated/graphql.tsx:761
↓ 1 callers
Function
useRegisterMutation
(baseOptions?: Apollo.MutationHookOptions<RegisterMutation, RegisterMutationVariables>)
web/src/generated/graphql.tsx:584
↓ 1 callers
Function
useUpdatePostMutation
(baseOptions?: Apollo.MutationHookOptions<UpdatePostMutation, UpdatePostMutationVariables>)
web/src/generated/graphql.tsx:621
↓ 1 callers
Function
useVoteMutation
(baseOptions?: Apollo.MutationHookOptions<VoteMutation, VoteMutationVariables>)
web/src/generated/graphql.tsx:652
↓ 1 callers
Function
validateRegister
(options: UsernamePasswordInput)
server/src/utils/validateRegister.ts:3
Function
ChangePassword
()
web/src/pages/change-password/[token].tsx:19
Function
CreatePost
({})
web/src/pages/create-post.tsx:13
Function
EditDeletePostButtons
({ id, creatorId, })
web/src/components/EditDeletePostButtons.tsx:11
Function
EditPost
({})
web/src/pages/post/edit/[id].tsx:16
Function
ForgotPassword
({})
web/src/pages/forgot-password.tsx:11
Function
Index
()
web/src/pages/index.tsx:12
Function
InputField
({ label, textarea, size: _, ...props })
web/src/components/InputField.tsx:20
Function
Layout
({ children, variant })
web/src/components/Layout.tsx:9
Function
Login
({})
web/src/pages/login.tsx:14
Function
MyApp
({ Component, pageProps }: any)
web/src/pages/_app.tsx:4
Function
NavBar
({})
web/src/components/NavBar.tsx:11
Function
Post
({})
web/src/pages/post/[id].tsx:10
Function
Register
({})
web/src/pages/register.tsx:15
Function
UpdootSection
({ post })
web/src/components/UpdootSection.tsx:54
Function
WithApollo
({ apolloClient, apolloState, ...pageProps })
web/src/utils/createWithApollo.js:87
Function
Wrapper
({ children, variant = "regular", })
web/src/components/Wrapper.tsx:10
Method
changePassword
( @Arg("token") token: string, @Arg("newPassword") newPassword: string, @Ctx() { redis, req }: MyC
server/src/resolvers/user.ts:52
Function
createClient
(ctx: NextPageContext)
web/src/utils/withApollo.ts:6
Method
createPost
( @Arg("input") input: PostInput, @Ctx() { req }: MyContext )
server/src/resolvers/post.ts:181
Function
createUrqlClient
(ssrExchange: any, ctx: any)
web/src/utils/createUrqlClient.ts:78
Method
creator
(@Root() post: Post, @Ctx() { userLoader }: MyContext)
server/src/resolvers/post.ts:46
Method
deletePost
( @Arg("id", () => Int) id: number, @Ctx() { req }: MyContext )
server/src/resolvers/post.ts:215
Method
down
(queryRunner: QueryRunner)
server/src/migrations/1597626060117-Initial.ts:15
Method
down
(_: QueryRunner)
server/src/migrations/1597424501158-MockPosts.ts:207
Method
email
(@Root() user: User, @Ctx() { req }: MyContext)
server/src/resolvers/user.ts:42
Function
errorExchange
({ forward })
web/src/utils/createUrqlClient.ts:23
Method
forgotPassword
( @Arg("email") email: string, @Ctx() { redis }: MyContext )
server/src/resolvers/user.ts:111
Method
hello
()
server/src/resolvers/hello.ts:6
Function
isAuth
({ context }, next)
server/src/middleware/isAuth.ts:4
Method
login
( @Arg("usernameOrEmail") usernameOrEmail: string, @Arg("password") password: string, @Ctx() { req
server/src/resolvers/user.ts:198
Method
logout
(@Ctx() { req, res }: MyContext)
server/src/resolvers/user.ts:238
Method
me
(@Ctx() { req }: MyContext)
server/src/resolvers/user.ts:139
Function
merge
( existing: PaginatedPosts | undefined, incoming: PaginatedPosts
web/src/utils/withApollo.ts:22
Method
post
(@Arg("id", () => Int) id: number)
server/src/resolvers/post.ts:175
Method
posts
( @Arg("limit", () => Int) limit: number, @Arg("cursor", () => String, { nullable: true }) cursor: str
server/src/resolvers/post.ts:127
Method
register
( @Arg("options") options: UsernamePasswordInput, @Ctx() { req }: MyContext )
server/src/resolvers/user.ts:149
Function
sleep
(ms: number)
server/src/utils/sleep.ts:1
Method
textSnippet
(@Root() post: Post)
server/src/resolvers/post.ts:41
Method
up
(queryRunner: QueryRunner)
server/src/migrations/1597626060117-Initial.ts:6
Method
up
(_: QueryRunner)
server/src/migrations/1597424501158-MockPosts.ts:4
Method
updatePost
( @Arg("id", () => Int) id: number, @Arg("title") title: string, @Arg("text") text: string, @C
server/src/resolvers/post.ts:193
Function
useMeLazyQuery
(baseOptions?: Apollo.LazyQueryHookOptions<MeQuery, MeQueryVariables>)
web/src/generated/graphql.tsx:684
Function
usePostLazyQuery
(baseOptions?: Apollo.LazyQueryHookOptions<PostQuery, PostQueryVariables>)
web/src/generated/graphql.tsx:727
Function
usePostsLazyQuery
(baseOptions?: Apollo.LazyQueryHookOptions<PostsQuery, PostsQueryVariables>)
web/src/generated/graphql.tsx:764
Method
vote
( @Arg("postId", () => Int) postId: number, @Arg("value", () => Int) value: number, @Ctx() { req }
server/src/resolvers/post.ts:69
Method
voteStatus
( @Root() post: Post, @Ctx() { updootLoader, req }: MyContext )
server/src/resolvers/post.ts:51