# Function useDeepQuery

- useDeepQuery<Table, LL>(query, options?): {
  data?: LL[];
  error?: any;
  loading: boolean;
  }

- #### Type Parameters

  - Table extends
    | "links"
    | "selectors"
    | "tree"
    | "numbers"
    | "strings"
    | "objects"
    | "can"
    | "handlers"
  - LL = Link<Id>

  #### Parameters

  - query: Exp<Table>
  - `Optional` options: Options<Table>

  #### Returns {
  data?: LL[];
  error?: any;
  loading: boolean;
  }

  - ##### `Optional` data?: LL[]

  - ##### `Optional` error?: any

  - ##### loading: boolean

  - Defined in work/deeplinks/deeplinks/imports/client.tsx:2185