Search for a Tugboat Object

Performs a case-insensitive string search for Tugboat Objects that match the provided search string.

Arguments

  • search - Required
    The string to search for.

Example

socket.emit('tugboat', 'tugboat', 'search', args, callback);

Output

The result is an array containing all of the Tugboat Objects that match the search query

[
    {
        "_id": "58d176719b47aa0001a1eea4",
        "updatedAt": "2017-03-21T18:56:17.101Z",
        "createdAt": "2017-03-21T18:52:33.723Z",
        "name": "master",
        "id": "58d176719b47aa0001a1eea4",
        "type": "preview",
        "repo": "58d174c6ffde8100016c4ff7",
        "project": "58d176719b47aa0001a1eea4"
    },
    {
        "_id": "58d176719b47aa0001a1eea6",
        "updatedAt": "2017-03-21T18:56:17.101Z",
        "createdAt": "2017-03-21T18:52:33.723Z",
        "name": "master",
        "id": "58d176719b47aa0001a1eea6",
        "type": "preview",
        "repo": "58d174c6ffde8100016c4ff7",
        "project": "58d176719b47aa0001a1eea4"
    }
]

results matching ""

    No results matching ""